santosh kumar patro
santosh kumar patro

Reputation: 8241

What is the source location from where the npm install command downloads the required packages?

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.

Upvotes: 4

Views: 2949

Answers (1)

Chris Hawkes
Chris Hawkes

Reputation: 12430

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

This info can be found in the npm config.

Upvotes: 5

Related Questions