报错npm ERR! A complete log of this run can be found
-
删除本地node_modules 依赖包
快速删除node_modules
npm install rimraf -g
rimraf node_modules -
执行 npm cache clean --force 清理缓存
npm cache clean报错
npm 5 使用了新的包管理模式,所以在升级之后,要先清空一下本地缓存
npm cache clean --force -
npm install
这个时候在用npm run dev运行程序即可