Is there any way to change or reset the global npm registry.
Appreciate your assistance.
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.
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.
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.
npm is configured to use the npm public registry at https://registry.npmjs.org by default.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With