Unexpected token < in JSON at position 1 while parsing near '
一般是网络原因引起的,可以换成淘宝镜像。
步骤:
1.全局配置切换到淘宝源 npm config set registry https://registry.npm.taobao.org
2.正常使用npm 安装插件
3.全局配置切换到官方源 npm config set registry http://www.npmjs.org
完成。
一般是网络原因引起的,可以换成淘宝镜像。
步骤:
1.全局配置切换到淘宝源 npm config set registry https://registry.npm.taobao.org
2.正常使用npm 安装插件
3.全局配置切换到官方源 npm config set registry http://www.npmjs.org
完成。