npm install --save code example
Example 1: npm install in dev mode
npm install packageName --save-dev
Example 2: install dependencies npm
npm install
Example 3: how to install dependencies from package.json
npm install
Example 4: install node_modules folder
npm install (with no args, in package dir)
Example 5: npm install and add to dependancies
npm i packageName -save
Example 6: install node modules
npm install --save packageName
npm install --save package1 package2
npm install --save package@version
npm i -s packageName
npm install --save-dev package@version
npm i -D packageName
npm install --global packageName
npm i -g packageName