node及依赖版本升级

This commit is contained in:
macro 2020-01-04 17:13:22 +08:00
parent 6bc6006404
commit a3741e1dbc
3 changed files with 2370 additions and 2476 deletions

View File

@ -56,14 +56,15 @@ src -- 源码目录
```
## 搭建步骤
- 下载node并安装[https://nodejs.org/dist/v8.9.4/node-v8.9.4-x64.msi](https://nodejs.org/dist/v8.9.4/node-v8.9.4-x64.msi);
- 下载node并安装[https://nodejs.org/dist/v12.14.0/node-v12.14.0-x64.msi](https://nodejs.org/dist/v12.14.0/node-v12.14.0-x64.msi);
- 该项目为前后端分离项目,访问本地访问接口需搭建后台环境,搭建请参考后端项目[传送门](https://github.com/macrozheng/mall);
- 访问在线接口无需搭建后台环境只需将config/dev.env.js文件中的BASE_API改为[http://120.27.63.9:8080](http://120.27.63.9:8080)即可;
- 克隆源代码到本地使用IDEA打开并完成编译;
- 在IDEA命令行中运行命令npm install,下载相关依赖;
- 在IDEA命令行中运行命令npm run dev,运行项目;
- 访问地址:[http://localhost:8090](http://localhost:8090) 即可打开后台管理系统页面;
- 如果遇到无法运行该命令需要配置npm的环境变量如在path变量中添加C:\Users\zhenghong\AppData\Roaming\npm。
- `注意`如果遇到无法运行npm命令需要配置npm的环境变量如在path变量中添加C:\Users\zhenghong\AppData\Roaming\npm;
- `注意`如果遇到npm install无法成功下载依赖请参考[使用Jenkins一键打包部署前端应用就是这么6](https://juejin.im/post/5e0360e951882512400ae872) 中`遇到的坑`部分。
## 许可证

4839
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -40,7 +40,7 @@
"friendly-errors-webpack-plugin": "^1.6.1",
"html-webpack-plugin": "^2.30.1",
"node-notifier": "^5.1.2",
"node-sass": "^4.9.0",
"node-sass": "^4.13.0",
"optimize-css-assets-webpack-plugin": "^3.2.0",
"ora": "^1.2.0",
"portfinder": "^1.0.13",