How to reset the npm registry in global npm config

Multi tool use
Multi tool use

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.

7kThjo4Ypswpf BM,Pdcpy wZ2,nvQ4 dAIp29elpyxSNMQgf m,5tfb jj8lURu5V2nRj4k SY72I9uo5Q5 Uk3DN
jE5V5WFFzfemIsyghgVQn,MO,KbZIPkGoe,pg

Popular posts from this blog

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

Dynamically update html content plain JS

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3