NPM 解决Unexpected end of JSON input while parsing near 问题

问题描述

  • 执行npm install命令的时候报错Unexpected end of JSON input while parsing near

原因分析

  • 可能是缓存问题

解决方法

  1. 终端执行命令npm cache clean --force
  2. 完成后再执行命令npm install

处理结果

  • 正常运行

猜你喜欢

转载自www.cnblogs.com/KevinTseng/p/12305896.html