command to install npm code example
Example 1: install npm globally
npm install npm@latest -g
Example 2: install dependencies npm
npm install
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
Example 5: what is npm install
npm install module-name
npm i module-name
puts module-name package (js library file)
into node_modules folder
so you can require it in node app