使用npm install XXX 时出现“failed to fetch from regi...

设置http_proxy 环境变量,比如

export http_proxy="http://10.123.74.137:808"

添加npm配置项: 

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

问题解决

你可能感兴趣的:(nodejs,npm,Registry)