'How do I remove corporate proxy? I have tried everything, nothing works

I have an artifactory preventing me from setting up any new apps or libraries. When I had access to corporate VPN, I could bypass it.

I am basically getting this when trying any npm install:

npm ERR! 

403 Forbidden - GET https:// (artifactory link) 

npm ERR! 403 In most cases, you or one of your dependencies are requesting

npm ERR! 403 a package version that is forbidden by your security policy, or

npm ERR! 403 on a server you do not have access to.

I have tried this:

npm config rm proxy

npm config rm https-proxy

I have even reinstalled Git and Node. Nothing works. Please help!



Solution 1:[1]

Try to set noproxy https://docs.npmjs.com/cli/v8/using-npm/config#noproxy

npm config set noproxy "my-proxy-host"

Solution 2:[2]

You can set your npm registry to the default registry

use the following command:

npm config set registry https://registry.npmjs.org/

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Balaji L S
Solution 2 YonatanAr