Upgrade/downgrade NodeJS using n

You can easy upgrade or downgrade Node JS using n.

Make sure npm is already installed on you mac machine.

You can use command below to install n

npm install -g n


  1. n latest                           Install or activate the latest node release
  2. n stable                          Install or activate the latest stable node release
  3. n <version>                    Install node <version>
  4. n rm <version ...>           Remove the given version(s)
  5. n ls                                 Output the versions of node available
  6. n help                             Get nore helpful information

Have agood day!