Configure npm install proxy - npm

I want to configure node so that I can download packages using npm install knowing that I am inside a company with a proxy.
I tried commands like :
npm config set https-proxy "http://company%5Cuser:password#server:port/"
but nothing changes.
Did I miss something?

Try to also set the http proxy:
npm config set proxy "http://company%5Cuser:password#server:port/"

Using CNTLM proxy had spared me those configs.

Related

List of npm registry

I want list of npm registries. I cannot install npm packages from https://registry.npmjs.org/, registry http://r.cnpmjs.org, http://registry.npmjs.eu, https://registry.npm.taobao.org/. They are all blocked. If you have any idea please make me aware of how can i install packages
Why its blocked?
maybe the right solution will be to use proxy like that (use your proxy its just an example)
npm config set proxy http://proxy.com:8000
or
npm config set https-proxy http://proxy.com:8000

npm install failing with proxy authentication required despite noproxy being set

I have an issue with npm install. I have configured npm to use my company's registry and configured the proxy to get external dependencies and set noproxy for my company's intranet.
noproxy = "*.intra.company.fr"
proxy = "http://user:pass#proxy.intra.company.fr:8080/"
registry = "http://registry.subdomain.intra.company.fr/repository/npm/"
However, when I try to install my project, I get this error:
npm ERR! code E407
npm ERR! 407 Proxy Authentication Required - GET http://registry.subdomain.intra.company.fr/repository/npm/#babel/types/-/types-7.15.0.tgz
I checked, I have no system environment variables set for HTTP_PROXY, PROXY or NO_PROXY.
Edit: npm version is 6.14.15
What's your NPM version ? you should be able to set noproxy on a domain wih NPM 6.4.1+ with a custom registry configured.
npm config set noproxy "*.intra.company.fr"
But maybe there is an issue with *, can you try to set your noproxy with your private registry ?
noproxy = "registry.subdomain.intra.company.fr"
You could also try to manually change your config in .npmrc.
By default, the value of noproxy is taken from the no_proxy environment variable. Try to use it to fix your issue.
export no_proxy="intra.company.fr"

How to install files using npm behind proxy?

While running the npm install command, I'm getting:
ERR 418 I m a teapot
I set a proxy but I'm not sure whether it is correctly parsed. I doubt that the proxy might be the reason. Can someone help me on this? I also ran npm config get proxy.
Try something like this:
npm config set proxy 213.169.158.34:8080
npm config set https-proxy 213.169.158.34:443
npm config set registry http://registry.npmjs.org/
npm instal

npm running task rollbackFailedOptional forever

I'm trying to install a new package via npm. Something like this:
npm install -g connection-test
Sadly the console is never finishing the task "rollbackFailedOptional".
I'm behind a proxy which I added to the npm config.
I removed the s from the https of my registry.
Any ideas what could be the issue or how to resolve this?
I made a mistake in the configuration. Didn't put the https:// in front of the Ip-address of the proxy.

npm try to use proxy after have removed it

I have set proxy for my npm, and now when I removed it
npm config rm http-proxy
I can't install packages.
npm try to use the proxy
Check your .npmrc file to see what's in there?