

Instead, we recommend installing nvm-windows and then using it to install Node.js and Node Package Manager (npm). Node Version Manager, more commonly called nvm, is the most popular way to install multiple versions of Node.js, but is only available for Mac/Linux and not supported on Windows. You will likely need to switch between multiple Node.js versions based on the needs of different projects you're working on. We recommend using a version manager as versions change very quickly. Install nvm-windows, node.js, and npmīesides choosing whether to install on Windows or WSL, there are additional choices to make when installing Node.js. # let's install different versions of nodeĪbove commands can be used for any linux based operating system like ubuntu as well.If you are using Node.js professionally, find performance speed and system call compatibility important, want to run Docker containers that leverage Linux workspaces and avoid having to maintain both Linux and Windows build scripts, or just prefer using a Bash command line, then install Node.js on Windows Subsystem for Linux (more specifically, WSL 2). 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.
