install dependencies in package.json code example

Example 1: how to install dependencies from package.json

npm install // installs dependencies listed in package.json

Example 2: how to install node dependencies

#how to install project dependecies when you download project

# example:
npm install

#NOTE:: by entering only this command your all dependecies will automatically installed.

Example 3: add dependencies to package.json

npm install <package-name> --save # Installs the package and add dependency in package.json
npm install # Installs dependencies listed in package.json

Tags:

Misc Example