In order to get the registry URL that is used to install the packages that you use in package.json type the following in the root directory of your project:

npm config get registry

In order to set the URL to be used by npm to download the packages in package.json type the following in the root directory of your project:

npm config set registry https://packages.myurl.com

If your company has private packages along with public packages that are downloaded from https://registry.npmsjs.org (default URL for npm) in package.json, add the URL for your company’s repository as follows in the root directory of your project:

npm config set @yourcompany:registry https://packages.yourcompanyurl.com