Answers for "update npm registry"

2

npm change registry

# replace the default registry URL as per your requirement

# the first command below is probably sufficient
npm config set registry https://registry.npmjs.org/

# command below probably not required
npm install --registry=https://registry.npmjs.org/
Posted by: Guest on May-24-2021
1

npm install custom registry

npm config set registry <registry url>

npm install --registry=<registry url>
Posted by: Guest on October-21-2020

Browse Popular Code Answers by Language