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
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
本文介绍如何设置NPM配置文件以使用公司代理服务器进行包管理操作。包括如何指定代理地址及端口,以及如何添加认证凭据。
622

被折叠的 条评论
为什么被折叠?



