在npm install时报错,错误是:error Unexpected end of JSON input while parsing near '...},"2.2.1":{"name":"vu'
解决方法:先清除缓存,再重新安装
清除缓存
npm cache clean --force
重新安装
npm install,或安装制定插件npm install -g @angular/cli
在npm install时报错,错误是:error Unexpected end of JSON input while parsing near '...},"2.2.1":{"name":"vu'
解决方法:先清除缓存,再重新安装
清除缓存
npm cache clean --force
重新安装
npm install,或安装制定插件npm install -g @angular/cli