Published in


❤️Node Package Manager❤️

💡NPM (Node Package Manager)

NPM is ❤️ of Javascript/Node

NPM is a javascript package manager which is basically used to install packages/modules in the project

Install NPM: NPM is installed with Node.js. So just you have to install Node.js

To install NPM packages:

: It will create a package.json file.

Note: This command should run on your root directory i.e your entry point of the project.

  • : The use of this file is that the packages we are installing using NPM will store in it as dependencies. It just contains the package name and its version.

: npm install <package_name>

* npm install passport


eg. {
"dependencies": {
"passport": "^0.4.0",

Note: When we install any module 1st time using NPM, it will create a file and folder called and

- It contains detailed information about packages/modules which are installed in package.json as dependencies

eg. {
"passport": {
"version": "0.4.0",
"resolved": "",
"integrity": "sha1-xQlWkTR71a07XhgCOMORTRbwWBE=",
"requires": {
"passport-strategy": "1.x.x",
"pause": "0.0.1"

: node_modules folder will contain the files. They will contain the actual code of all installed dependencies. Just you have to require these dependencies in your project and use them.

const passport = require('passport');

Done! ✌ Now only you have to install the required packages which are required for your project.

A Bespoke Engineering Studio

Recommended from Medium

How To Create List And Grid View Using JavaScript

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Shweta Pawar

Shweta Pawar

More from Medium