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:8082

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

npm install -g cnpm --registry=https://registry.npm.taobao.org
cd litemall/litemall-admin
cnpm install
cnpm run dev

posted @ 2022-11-21 18:54  TwcatL_tree  阅读(1)  评论(0编辑  收藏  举报