What Is NPM ........?

What Is NPM ........?

Hello World,

The every beginner encounter with the term NPM, So "what is NPM...?" . You may heard about the package manager which are responsible for taking care of all the packages,The NPM is a package manager for Node.js.

NPM stands for Node Package Manager which is responsible for handling all dependencies required for Node. NPM comes with Node.js so there is no need to download and install it separately.

Whenever we want to download node_modules NPM do it for us. NPM finds the Module in NPM registery(which cloud of NPM) and then download it .

Command For Initialize Node Directory

npm init

Commands require for NPM Package Installation

1.For installing packages

npm i pakage_name

2.Installing packages globally

npm i -g package_name

3.Installing packages only for development

npm i package_name --save-dev

For Source Control

npm i

Listing The Installed packages Or Dependencies

1.For listinf all package

npm list

2.For list with detailed package info

npm list --depth=0

Viewing Registry Info For Package

npm view package_name

Publish Package On NPM Registry

npm publish

Uninstall Package

npm unistall package_name

or

npm un package_name

Thank u!!!!