创建CLI4项目错误解决办法:Unexpected end of JSON input while parsing near '...RE----- Version: O'

今天使用vue create my-project创建CLI4项目时,出现了如下的错误:

 解决办法:

运行npm cache clean --force,然后再重新创建即可。

原文地址:https://www.cnblogs.com/lilisblog/p/12625775.html