List of npm registry - npm

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

Related

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"

Configure npm install proxy

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.

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

How can I remove the npm registry from my machine?

I published a module to npm. When I uninstall it and try to reinstall it, this is always done from a cache ( it is done even if I'm not connected to the internet, I just get a warning ). I would like to try if my module installs correctly from the remote npm repository on a fresh npm registry.
I tried to remove Node.js and reinstall it, but it does not help. There is no "npm" in the list of my applications that I could remove, only Node.js is listed. This is on a Windows 10 machine.
Where is the npm registry located and how can I remove it entirely?
You have to clean your NPM cache and then clear your registry using the below commands.
npm cache clean
npm config delete registry
Thanks
npm config delete registry
This worked for me

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?