`
mailheqiang
  • 浏览: 10368 次
社区版块
存档分类
最新评论

npm config the proxy

阅读更多
Using Npm Behind a Corporate Proxy

npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080

If you need to specify credentials, they can be passed in the url using the following syntax.

http://user_name:password@proxy.company.com:8080

Note: the npm config set command sets the proxy configuration in your .npmrc file.

npm --https-proxy=http://proxy.company.com:8080 -g install karma

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics