npm ERR! Unexpected end of JSON input while

 时间:2024-10-23 01:05:26

1、今天用npm编译时候报错:C:\Users\king\vue-devtools>npm installnpm 呶蓟鹭毵ERR! Unexpected end of JSON input while parsing near '...0.0","stream-to-obser'npm ERR! A complete log of this run can be found in:npm ERR! C:\Users\king\AppData\Roaming\npm-cache\_logs\2018-10-28T02_27_43_867Z-debug.log通过查找归纳,找到解决办法

npm ERR! Unexpected end of JSON input while

2、首先清除npm编译的一些缓存,使用命令:npm cache clean --force

npm ERR! Unexpected end of JSON input while

3、接下来,重新编译需要编译的包npm install编译成功:如下所示,接下来我们就可以用我们的编译包了

npm ERR! Unexpected end of JSON input whilenpm ERR! Unexpected end of JSON input while

4、如果还是不能编译成功,那么最好重新安装洧粽袄淖配置下node.js,node.js windows版本可以到官网下载直接安装,如下图所示,我的是windows64位所以下载64位的,下载完成,直接安装即可

npm ERR! Unexpected end of JSON input while
  • VMware如何添加新的虚拟机
  • win11怎么修改用户权限
  • mfc如何多串口编程
  • 如何解决SVN Commit Conflict
  • 如何进行配置xfce4桌面显示设置
  • 热门搜索
    邡怎么读 风筝怎么画 怎么上推特 羊舍怎么建 火怎么画 生了暴君反派的崽怎么破 端午节放假通知怎么写 贺卡怎么写 盆腔积液是怎么引起的 花的笔顺怎么写