npm ERR! Unexpected end of JSON input while parsing near '...-resolve":"^1.11.2"

npm install安装错误.

5180 verbose npm v6.14.5
5181 error Unexpected end of JSON input while parsing near '...-resolve":"^1.11.2","'
5182 verbose exit [ 1, true ]

可能是npm源的问题,更换Taobao源就可以了

 

npm config set registry https://registry.npm.taobao.org/

npm config get registry https://registry.npm.taobao.org/

然后在重新运行nup install

posted @ 2020-07-17 21:05  Montai  阅读(151)  评论(0编辑  收藏  举报