Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 825
Dinuka De Silva Avatar asked Dec 14 '16 06:12

Dinuka De Silva


People also ask

How do I reset my npm environment?

npm config edit Opens the config file in an editor. Use the --global flag to edit the global config. now you can delete what ever the registry's you don't want and save file. npm config list will display the list of available now.

How do I change npm registry settings?

Run the npm config list command to see what variables are set. If you run this in a project folder with an . npmrc file you should see its overriding configuration settings in the folder, and the system global settings after that.

What is the default npm registry?

The default is typically set to the public npm registry at https://registry.npmjs.org/ . For more information about npm configuration files, see the npm config file documentation.

Where is npm config registry?

npm is configured to use the npm public registry at https://registry.npmjs.org by default.


1 Answers

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

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

or

npm config delete registry 

NPM CONFIG DOCS

like image 118
Kraken Avatar answered Sep 21 '22 13:09

Kraken