npm install in folder code example
Example 1: install npm globally
npm install npm@latest -g
Example 2: npm install in dev mode
npm install packageName --save-dev
Example 3: install node_modules folder
npm install (with no args, in package dir)
Example 4: 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