What is the difference between node.js runtime and npm package manager options while installing node.JS?

First of all, it does not ask you to install Node.js runtime OR npm package manager, it offers you to install them both (if you want)

Now, Node.js runtime is basically what will understand your javascript code and execute it to produce a result.

Npm package manager is a tool which will allow you to install third party libraries (other people's code) by using the command line.

npm install express

will install the framework called express for example.


  • Node and Nodejs are the same. Interchangeable names for the same thing. Unless someone is talking about graph theory, trees or data structures.
  • Nvm is a Nodejs version manager. It let's you easily install and switch between versions. It retains globally installed packages for each version.
  • Npm is a package manager. It let's you install software (libraries, plugins, frameworks and applications). Typically this software is installed to build Node applications. Sometimes it isn't.

Put more simply. Npm depends on Node. Nvm installs Node.


Node JS

  • Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications.

  • Real-Time services (Chat, Games etc)

NPM

  • Npm is a package manager. Typically this software is installed to build Node applications.

  • It let's you install software (libraries, plugins, frameworks and applications).

Tags:

Node.Js

Npm