Shell/Bash: how to install node modules Example

By

Shell/Bash Example: This is the "how to install node modules" Example. compiled from many sources on the internet by SimpleTutorials.org

how to install node modules

npm install -g node-modules

npm install package as developer dependency

npm install --save-dev package
# example:
npm install --save-dev nodemon

install node_modules

npm install

npm install package globally

#Syntex
npm install packagename -g

#example
npm install express -g

how to install any package in node.js

#how to install any specific package in nodejs Application
# Syntex
npm install packagename

# example:
npm install express
npm i express

#if you install globally then type 
npm install express -g

install an npm package

npm install package-name

To save as a dependency:
npm install package-name --save


* Summary: This "how to install node modules" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others