This article is a mirror article of machine translation, please click here to jump to the original article.

View: 11207|Reply: 1

npm method of setting up and canceling proxies

[Copy link]
Posted on 5/5/2020 10:08:09 AM | | | |
Since the host is connected to the Internet through a proxy, when using the npm installation package, it will not be able to download and install normally without going through the proxy, and the error is as follows:



npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request tohttps://registry.npmjs.org/@angular%2fclifailed, reason: connect ETIMEDOUT 104.16.19.35:443
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'


Set up the agent



About https

After the above settings, the source starting with http is used, so there is no need to set https_proxy, otherwise a sentence will be added:



Proxy username and password



Cancel the agent









Previous:The impact of the dll.refresh file when referencing the project class library
Next:node-sass error workaround
 Landlord| Posted on 4/2/2022 6:07:48 PM |
Delete the agent

Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com