


To install a different version, just replace 10.1.2 with the version you want You can switch between the two by using the following: ~/$> use node -or- ~/$> nvm use -lts If you want the long term support version instead, preform this command ~/$> install -lts The above installs the newest version of node. If you have NPM, or already installed NPM as shown above, get the latest node version with the command below. The above will upgrade to the latest NPM version for the current node version. If you don't have NPM you can start with this command ~$> nvm install-latest-npm bashrc is updated, there is no need to do anything, beyond the curl command below, to install NVM.Īlternatively, if you prefer wget, use the following.Īt this point you can preform the following commands. You can get the free opensource version managment tool freely by visiting the repository at the link above (click on the title), or you can simply use the following command, which auto-updates your $HOME/.bashrc configuration. I have been through all of the ways to do this, and as of 2022, I can tell you that the best way is to use NVM.
