install packages from package.json code example
Example 1: how to install dependencies from package.json
npm install // installs dependencies listed in package.json
Example 2: install an npm package
npm install package-name
To save as a dependency:
npm install package-name --save
Example 3: install node modules from package.json
npm install (with no args, in package dir)
npm install [<@scope>/]
npm install [<@scope>/]@
npm install [<@scope>/]@
npm install [<@scope>/]@
npm install :/
npm install
npm install
npm install
npm install
aliases: npm i, npm add
common options: [-P|--save-prod|-D|--save-dev|-O|--save-optional] [-E|--save-exact] [-B|--save-bundle] [--no-save] [--dry-run]