为了缩小svn的上传内容,特意排除了node_modules,可到了另一台机器按照正常流程无法运行了。
1. 删除 node_modules 包 (如果压根没有就跳过)
2. 运行清理缓存
npm cache clean -f
3.设置代理为null
npm config set https-proxy null
npm config set proxy null
4.切换数据获取源到 淘宝 镜像
npm config set registry https://registry.npmjs.org/
5.安装 npm 模块
npm install
6.运行
npm run dev