This tutorial explained you to how to install NVM and node.js on macOS system. Similarly, you can install other versions like Node 12.X or Node 15 and switch between them. To set the node 14.X as default version, simply use: nvm use 14 Which versions of macOS does my MacBook Pro support MacBook Pro Models. If you have installed multiple versions on your system, you can set any version as the default version any time. List of Apple computers compatible with macOS Mojave MacBook (Early 2015 or later) MacBook Air (Mid 2012 or later) MacBook Pro (Mid 2012 or later) Mac mini. nvm install node # Installing Latest version nvm install 14 # Installing Node.js 14.X versionĪfter installing you can verify what is installed with: nvm ls You can also use aliases names like node for latest version, lts for latest LTS version, etc. Now, you can install any version listed in above output. To see available versions, type: nvm ls-remote Step 3 – Install Node.js with NVMįirst of all, see what Node versions are available to install. Go to next step to install Node.js versions with the help of nvm. The NVM has been installed on your macOS system. From the next login, it will automatically loaded. Next, load the variable to the current shell environment. To counter that, Apple added Desktop Stacks to make your desktop organized according to the criteria you desire. However, in the older versions, the sync between Mac and iPhone led to a lot of clutter. Press ESC + :wq to save and close your file. As an operating system, Mac OS has always tried to make things sleek and minimalist on your desktop.
Edit the following configuration file in your home directory vim ~/.bash_profileĪnd, add below lines to ~/.bash_profile ( or ~/.zshrc for macOS Catalina or later) export NVM_DIR=~/.nvm 2.12 Mac OS X 10.8 'Mountain Lion' 2.13 OS X 10.9 'Mavericks' 2.14 OS X 10.10 'Yosemite' 2.15 OS X 10.11 'El Capitan' 2.16 macOS 10.12 'Sierra' 2.17 macOS 10.13 'High Sierra' 2.18 macOS 10.14 'Mojave' 2.19 macOS 10.15 'Catalina' 2.20 macOS 11 'Big Sur' 2. Now, configure the required environment variables. Next, create a directory for NVM in home. Update the Homebrew package list and install NVM. Now, you system is ready for the installation. brew uninstall -ignore-dependencies node brew uninstall -force node Step 2 – Install NVM on macOS My system already have installed node via Homebrew. If your system already have node installed, uninstall it first.
Login to the macOS desktop system and install Homebrew on your system (if not already installed) ruby -e "$(curl -fsSL )"įor more instruction visit Homebrew installation tutorial. You must have macOS desktop access with administrator privileges. This tutorial help you to install NVM on your macOS system and manage Node.js versions. The macOS users can install NVM using the homebrew. The NVM (Node Version Manager) is a shell script used for installing and managing Node.js on a Linux based system.