抱歉,您的浏览器无法访问本站
本页面需要浏览器支持(启用)JavaScript
了解详情 >

设置代理

1
2
3
$ npm config set proxy=http://127.0.0.1:8087
#如果源是https则设置下面的代理格式
$ npm config set https-proxy http://server:port

设置源地址

1
2
$ npm config set registry=http://registry.npmjs.org
$ npm info underscore #(如果上面配置正确这个命令会有字符串response)

取消代理

1
2
$ npm config delete proxy
$ npm config delete https-proxy

评论