n - Interactively Manage Your Node.js Versions on macOS
n is a Node.js version management: no sub-shells, no profile setup, no convoluted, just simple. Supported Platforms n is supported on macOS, Linux, including with Windows Subsystem for Linux, and various other unix-like systems. It is written as a BASH script but does not require you to use BASH as your command shell. n does not work in native shells on Microsoft Windows (like PowerShell), or Git for Windows BASH, or with the Cygwin DLL. Installation If you already have Node.js installed, an easy way to install n is using npm : sudo npm install -g n The n command downloads and installs to /usr/local by default. Installing Node.js Versions Simply execute n <version> to download and install a version of Node.js. If <version> has already been downloaded, n will install from its cache. sudo n 10.16.0 sudo n 10 sudo n install 10 sudo n lts sudo n latest Execute n on its own to view your downloaded versions, and installed the selected version. %