node安装依赖

node 版本:v6.11.2
npm 版本:3.10.10

开发(在UI目录下)

    
    # 安装依赖
    npm install

    ## 若上述不行则采取下面命令
    npm install --registry=https://registry.npm.taobao.org

    # 本地开发 开启服务
    npm run dev

浏览器访问 http://localhost:9527

发布

    # 构建生成环境
    npm run build:prod


npm install -g cnpm --registry=https://registry.npm.taobao.org
cd litemall/litemall-admin
cnpm install
cnpm run dev
 
posted @ 2019-08-03 23:13  tonggc1668  阅读(1484)  评论(0)    收藏  举报