I am trying to install jquery using npm in my project, but it is giving this error : npm ERR! 407 Proxy Authentication Required - GET http://registry.npmjs.org/jquery
npm ERR! 407 Proxy Authentication Required - GET http://registry.npmjs.org/jquery
. On Googling I found out that we have to set proxy settings using commands such as npm config set proxy http://proxy.company.com:proxyport
but I am using a VPN network, and in proxy settings it shows *Some properties are hidden or managed by your organization
How do I resolve this problem?
Correct proxy setting:
HOME:File .npmrc
Mac:
/Users/user_name/.npmrc
Window:
C:\Users\user_name\.npmrc
Add proxy with username and password
proxy=http://username:password@proxy_url:8080
http-proxy=http://username:password@proxy_url:8080
https-proxy=http://username:password@proxy_url:8080
Note: If your password contains special char, replace with encoded value. Like @ will be %40
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.