安装vue脚手架报错
    


            
npm 安装vue脚手架报错

 

 

报错详情

npm ERR! Unexpected end of JSON input while parsing near '...TuHxXJaknDulF3AdSBoul'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\xxx\AppData\Roaming\npm-cache\_logs\2019-12-22T03_12_06_342Z-debug.log

最后解决方法

npm cache clean --force
npm i -g npm

不行再试一遍这些

npm ls --depth 0 -g // 看看哪些失效了
npm prune -g // 修剪下全局包
npm rebuild -g // 重建下全局包
npm update -g // 更新下全局包的版本
npm cache clear --force -g // 删除全局包的缓存(慎重)

 

安装vue脚手架报错
    


            
npm 安装vue脚手架报错

 

 

报错详情

npm ERR! Unexpected end of JSON input while parsing near '...TuHxXJaknDulF3AdSBoul'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\xxx\AppData\Roaming\npm-cache\_logs\2019-12-22T03_12_06_342Z-debug.log

最后解决方法

npm cache clean --force
npm i -g npm

不行再试一遍这些

npm ls --depth 0 -g // 看看哪些失效了
npm prune -g // 修剪下全局包
npm rebuild -g // 重建下全局包
npm update -g // 更新下全局包的版本
npm cache clear --force -g // 删除全局包的缓存(慎重)

 

相关文章:

  • 2021-06-09
  • 2022-12-23
  • 2021-09-23
  • 2021-07-25
  • 2021-10-29
猜你喜欢
  • 2021-04-23
  • 2021-10-08
  • 2021-04-18
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
相关资源
相似解决方案