npm run ERR! code ELIFECYCLE

vue npm 出现如下错误:

 解决方法:

#(1)第一步
npm cache clear --force
 
#(2)第二步 删除node_modules文件夹
linux上:rm -rf node_modules
window上: 直接手动删除 #(
3)如果有package-lock.json文件就删除它,没有不用管,直接跳到第(4)步 linux上:rm -rf package-lock.json
window上: 直接手动删除 # (
4)安装模块 npm install

 

posted @ 2020-08-02 17:08  好学Ace  阅读(530)  评论(0编辑  收藏  举报