What is the source location from where the npm ins

2019-07-16 02:43发布

问题:

I am trying to get the source location (URL) to which the command npm install is trying to connect and get the dependent packages to be downloaded, based on the package.json file and place it in the local box.

From the below mentioned url: http://www.tutorialspoint.com/nodejs/nodejs_npm.htm ,I came to know that it is trying to connect https://nodejs.org/en/

Can anyone tell me whether the above is correct or is there any other url that it is trying to connect and download the packages.

We have an environment that is restricted from internet access. In order to access few urls, I need to raise a request to allow access to certain urls based on the proxy rules.

回答1:

registry = "https://registry.npmjs.org/"

This info can be found in the npm config.



标签: node.js npm