Unexpected token < in JSON at position 0 while parsing near

npm install 出现了Unexpected token < in JSON at position 0 while parsing near '<html> ......这个报错
解决方法是替换成官方镜像地址

首先是查看当前镜像地址

npm config get registry

然后替换成官方镜像地址

npm config set registry https://registry.npmjs.org/

评论

暂无评论