NodeJs 上的问题,GitHub 和 IONIC 代理连接

Problems on NodeJs, GitHub and IONIC connection by proxy

我的贡献

我无法下载作业的依赖项 我有错误连接,由代理问题

这是我的贡献

当你在一家公司工作时,安装来自 NodeJs 的任何包,并且这家公司有一个代理,这些线解决了我的工作生活。希望有用:

// when you have a package.json and you need install all
npm --proxy http://<your_account>:<your_password>@<ip_address>:<port_number> install

// Set as an environment proxy
npm config set proxy http://<your_account>:<your_password>@<ip_address>:<port_number>
npm config set https-proxy http://<your_account>:<your_password>@<ip_address>:<port_number>


// this is when you have some packages(dependencies) and those are stored on Github
git config --global http.proxy http://<your_account>:<your_password>@<ip_address>:<port_number>
git config --global https.proxy http://<your_account>:<your_password>@<ip_address>:<port_number>

// if you start with IONIC you will need set on the environment the proxy
set PROXY=http://<your_account>:<your_password>@<ip_address>:<port_number>

大家见