Skip to content

NodeJS Cheatsheet#


  • nvm-windows: hassle free install means on windows
  • npm-check-updates: utility package for major version package upgrades
  • install/upgrade nvm, node, npm, yarn, TypeScript
    nvm install [version]
    nvm use [version]
    npm install -g npm@latest
    npm install -g typescript@4.8.2
    npm install -g yarn@latest
    npm install -g npm-check-updates@latest


Command Desc
nvm list available list available node versions to install
nvm install [version] install node version; NOTE: global npm modules are not shared so must be reinstalled
nvm use [version] switch node version
nvm current info on currently selected node version
npm install -g npm@latest upgrade npm to the latest version
npm update [--omit=dev --package-lock=false] minor version package upgrade + package-lock.json
npm cache verify verify npm cache
npm -g list list globally installed packages
npm cache clean [-force] clean npm cache
npm outdated find outdated packages
npm install -g npm-check-updates@latest install ncu package
ncu 'what if' version of ncu -u i.e. won't modify package.json
ncu -u && npm update major version package upgrade + package.json version hints
ncu -i interactive version of ncu -u


Last update: 2022-11-16