Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What protocol and port does npm use?

When I run

npm install

What protocol and port does it use for fetching the node_modules folder files?

I didn't find an answer by searching here or on Google

like image 212
J. Doe Avatar asked Nov 17 '17 19:11

J. Doe


People also ask

Which port does npm use?

The next time you run the npm start command, the default port used will be 7200 .

Does npm use node?

To publish and install packages to and from the public npm registry or a private npm registry, you must install Node. js and the npm command line interface using either a Node version manager or a Node installer. We strongly recommend using a Node version manager like nvm to install Node.

Is npm same as Nodejs?

node is a framework that can run JavaScript code on your machine while npm is a package manager. Using npm we can install and remove javascript packages also known as node modules. Now, it is not a rule that you should use npm to install and remove node modules.

Does npm have an API?

While many people regularly use npm's website to discover packages, only a few know that npm also provides a public REST API accessible at registry.npmjs.org. This API provides methods to: Get information about the registry itself. Get all available information about a specific package.


1 Answers

When npm installs you project dependencies, it does requests to its registry, which is at https://registry.npmjs.org, so, the answer to your question is HTTPS and 443. HTTP unencrypted web traffic is port 80, HTTPS encrypted traffic is used by most reputable sites and services thus port 443.

like image 168
Alex Pashkov Avatar answered Oct 01 '22 00:10

Alex Pashkov