首页 > 技术文章 > [FWD] 如何给 NPM 设置代理

dervon 2015-01-28 10:26 原文

GFW 蛋疼的把 https://registry.npmjs.org 给墙了,导致无法通过 NPM 安装模块。
可以运行如下两句命令设置代理,注意代理的地址改为自己实际可用的代理。

npm config set proxy=http://127.0.0.1:8087
npm config set registry=http://registry.npmjs.org


From: http://blog.csdn.net/cnbird2008/article/details/8442333

推荐阅读