LogoLogo
  • Introduction
  • CLI
    • Chocolatey
    • Docker
    • Git
    • nmap
    • npm
    • npm - n
    • npm - npm-check-updates (ncu)
    • npm - npm-license-crawler
    • Python
    • Ubuntu
    • Windows Commands
  • JS
    • JSDoc
Powered by GitBook
On this page
  • To install
  • To install versions of node
  • Remove a version
  • Prune all packages but current

Was this helpful?

  1. CLI

npm - n

Note: use sudo on Linux or WSL

To install

npm i -g n

To install versions of node

n latest

Options

  • latest

  • stable

  • lts

  • version number

Remove a version

n rm 8.9.0

or

n - 8.9.0

Prune all packages but current

n prune
PreviousnpmNextnpm - npm-check-updates (ncu)

Last updated 5 years ago

Was this helpful?