npm ERR! Unexpected end of JSON input while parsing near
安装包依赖的时候一直报错【npm ERR! Unexpected end of JSON input while parsing near】,具体报错信息如下:
问题原因:
npm官方服务器在国外,网络受阻性大
解决方案:
使用淘宝源进行下载安装
npm config set registry https://registry.npm.taobao.org/
npm install 包名