shlogg · Early preview
Ajeet Singh Raina @ajeetsraina

Install And Manage Multiple Node.js Versions With Nvm On Mac

Install nvm on Mac with Homebrew: `brew install nvm`, then add to shell profile: `source $(brew --prefix nvm)/nvm.sh`. Use specific Node.js version: `nvm ls-remote`, `nvm install <version>`, `nvm use <version>`.

Follow me on Twitter
nvm (Node Version Manager) is a tool that allows you to install and manage multiple versions of Node.js on your Mac. To install nvm on a Mac, you will need to follow these steps:

  
  
  Install Homebrew

nvm is not available in the default package manager for Mac, so you will need to install Homebrew first. To do this, open a terminal window and run the following command:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

    
    

    
    




  
  
  Install nvm

Once you have Homebrew installed, you can use it to inst...