我是
靠谱客的博主
热心泥猴桃,最近开发中收集的这篇文章主要介绍
nodejs 设置proxy,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
为npm设置代理(转自:http://www.cnblogs.com/huang0925/archive/2013/05/17/3083207.html)
1
2
| $ npm config set proxy http://server:port
$ npm config set https-proxy http://server:port
|
如果代理需要认证的话可以这样来设置。
1
2
| $ npm config set proxy http://username:password@server:port
$ npm config set https-proxy http://username:pawword@server:port
|
如果代理不支持https的话需要修改npm存放package的网站地址。
1
| $ npm config set registry "http://registry.npmjs.org/" |
最后
以上就是热心泥猴桃为你收集整理的nodejs 设置proxy的全部内容,希望文章能够帮你解决nodejs 设置proxy所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复