

Sometimes it seems like there are new versions of Node.js released almost weekly - minor versions every few weeks, and major versions every few months. For more information on switching Node versions using nvm, check out this article. Switching between Node versions during developmentĮditor’s note: This article was last reviewed and updated on 31 January 2023. # let's install different versions of nodeĪbove commands can be used for any linux based operating system like ubuntu as well.Brian De Sousa Follow Geek. If you have curl or wget installed already on your mac os and want to install nvm using wget or curl try following commands: How To Install NVM on macOS using curl or wget? Nano ~/.bash_profile OR vim ~/.bash_profile # open bash profile in nano or vim editor # check to see if installation is successfulīrew uninstall -ignore-dependencies node # If you already have homebrew and want to upgradeĬd "$(brew -repo)" git fetch & git reset -hard origin/master & brew update In order to install nvm on your mac machine using home brew follow the steps below: # if you want to install different versions

Once curl is installed you can run following commands to install nvm on linux machine: If you do not know how to install curl try following command: To install NVM on your linux or Ubuntu machine you should have curl installed. If you are working on different node projects where you have to switch between different node versions nvm will be your best option. It is known as Node Version Manager and you can easily install this tool on linux or mac or windows machine. NVM is a command line tool that allows you to manage different versions of NodeJS.
