背景:使用npm下载时,出现错误Unexpected end of JSON input while parsing near···
解决方法:先清除缓存,再重新安装
清除缓存
npm cache clean --force
运行下
npm install
然后在执行下载就OK了
背景:使用npm下载时,出现错误Unexpected end of JSON input while parsing near···
解决方法:先清除缓存,再重新安装
清除缓存
npm cache clean --force
运行下
npm install
然后在执行下载就OK了