npm install 错误“Unexpected end of JSON input while parsing near ...“

Posted bcbobo21cn

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了npm install 错误“Unexpected end of JSON input while parsing near ...“相关的知识,希望对你有一定的参考价值。

npm install 出现错误,

解决方法,
切换为淘宝镜像:
             npm config set registry https://registry.npm.taobao.org/ 

或者npm cache clean,再切换为淘宝镜像;

之后就可以了,

 

以上是关于npm install 错误“Unexpected end of JSON input while parsing near ...“的主要内容,如果未能解决你的问题,请参考以下文章

npm install出现"Unexpected end of JSON input while parsing near"错误解决方法

npm install 时出现 Unexpected end of JSON input while parsing near···

npm install 时报错 Unexpected end of input at 1:15930

npm install Unexpected token in JSON at position XXX

npm install "Unexpected end of JSON input while parsing near"问题

npm 在安装 Vue脚手架命令(npm install -g @vue/cli)时报错安装报错--“Unexpected end of JSON input while parsing near&#