npm报错汇总
2020-11-26 本文已影响0人
renxiaoyao09
记得关闭当前终端 另起终端执行npm i
1、no such file or directory, open 'D:\object\work\news_app\node_modules.staging\。。。
解决方法:删掉package-lock.json

2、npm ERR! Unexpected end of JSON input while parsing near '...},"dist":{"shasum":"a'
解决方法:npm cache clean --force
