npm install 问题:
ECONNRESET: 网络重置
google发现 npm registry 为一个外网地址, 访问不了, 需要替换为国内的地址(类似 linux系统换源)
通过 npm config ls -l 发现:
registry = "https://registry.npmjs.org/"
然后替换为国内源:
npm config set registry https://registry.npm.taobao.org
即可.
参考:
https://www.cnblogs.com/sghy/p/6840925.html
网友评论