Allow multi-version nodejs in your system

Install

Install n globally in your system

1
sudo npm install n -g

Usage

  1. install stable version nodejs

    1
    sudo n stable
  2. install latest version nodejs

    1
    sudo n latest
  3. upgrade/downgrade nodejs

    1
    2
    3
    sudo n [version]
    // Eg. upgrade/downgrade to version 8.4.0
    // sudo n 8.4.0
  4. view all version

    1
    n

EOF
Enjoy
I, simon love this world ❤️