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

Posted 我爱敲代码

tags:

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

  今天在安装新的vue环境的时候报错了,错误为"Unexpected end of JSON input while parsing near........."

  此时,运行代码:

npm cache clean --force

   问题就可以解决

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