How to reset the npm registry in global npm config

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



How to reset the npm registry in global npm config



Is there any way to change or reset the global npm registry.



Appreciate your assistance.





stackoverflow.com/questions/22385092/…
– Dinuka De Silva
Dec 14 '16 at 7:27




3 Answers
3



Run the following command in your terminal to revert back to the default regsitry


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



NPM CONFIG DOCS



Yes...



You can use this


$(npm config get globalconfig)
npm config --global edit



If you are on windows, other than setting the registry, you can also delete the .npmrc file to reset the registry.


.npmrc



You can find this file at C:Users<Your User Name>.npmrc


C:Users<Your User Name>.npmrc






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard