npm install packages from package.json code example
Example 1: install node_modules
npm install
Example 2: how to install dependencies from package.json
npm install // installs dependencies listed in package.json
Example 3: install an npm package
npm install package-name
To save as a dependency:
npm install package-name --save
Example 4: how to install npm packages
npm i <package>