Skip to content

npm

  • to manage multiple node use nvm - node version manager

  • npm --version show version of npm installed

  • npm install -g npm@latest update npm
  • npm config list show configuration of npm
  • npm install [pkgname] -g install package in global mode
  • npm list --global list installed packages globally
  • npm list -g --depth=0 show less verbose output of installed packages globally
  • npm search [pkgname] search a particular package
  • npm uninstall [pkgname] remove a particular package