这几天在安装nuxt的时候总是出现以下错误,查找了很多资料,反复试了很多次,终于成功了

npx create-nuxt-app myapp 安装出现 Unexpected end of JSON input while parsing near '...devDependencies":

只需要在cmd下(windows)执行:npm cache clean --force  (清除缓存即可)

 

相关文章: