npm 出现”error Unexpected end of JSON input while parsing near “错误解决方法
2019年4月24日1.首先清除缓存
1 |
npm cache clean --force |
2.其次检查镜像源
1 |
npm config get registry |
3.如果不是国内镜像源请更换
1 |
npm config set registry=https://registry.npm.taobao.org |
4.尝试再次重新安装
1 |
npm install |