0 votes
109 views
in Node.js by (4.4k points)
What is npm in Node.js ?

1 Answer

0 votes
by (4.4k points)

NPM:- NPM stands for Node Package Manager. 

NPM (Node Package Manager) provides the following two main functionalities:-

  1. It works as an Online repository for node.js packages/modules which are present at <nodejs.org>.
  2. It works as Command line utility to install packages, do version management and dependency management of Node.js packages. NPM comes bundled along with Node.js installable. 

We can see the version of NPM by using following command-

npm --version

PS C:\Vinod\nodejs\crm-app> npm --version

6.14.6

NPM helps to install any Node.js module using the following command.

npm install <Module Name>

Example to install a famous Node.js web framework module called express-

npm install express

Share:- Whatsapp Facebook Facebook


Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.

Categories

...