Himanshu Gilani

Web Developer and Entrepreneur. Founder of mementodb.com

NPM and package.json

| Comments

NPM is a package manager for node. Working with NPM is really simple. It gets installed as part of the node.js installation. NPM packages can be installed locally for a project or globally for the entire system. Whenever you install packages these packages are fetched from the NPM registry.

Local Install

If you want to install any node package then you can simply do

1
npm install {package_name}

This will install NPM package {package_name} in the current working directory. This is typically root of the project.