Package Manager
Node package manager npm
Documentation (opens in a new tab)
npm install
Install dependencynpm install --save-dev
Install development dependencynode
enters node REPL environmentnode fileName.js
run codenvm install 16.13.1
update nodejs to specific versionnpm init
initialize node package manager, create new package.json inside projectnpm install express dotenv ejs
install packagesnpm i express
install package
Node version manager nvm
Documentation (opens in a new tab)
nvm install node
installs latest node versionnvm install --lts
installs latest long term stable versionnvm install 14.7.0
installs specific node versionnvm ls
lists all node versions on computernvm use system
runs system defaultnvm use 16.15.1
runs specific node version