Last Updated on January 29, 2023 by Vikash Ekka
This tutorial will show you how to install NVM on your macOS system and manage Node.js versions.
- macOS system with access with administrator privileges
Install Homebrew on macOS
To install the Homebrew on macOS follow the instruction Link
Install NVM on macOS
Step 1. To install NVM, you can use the following command MacOS):
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
Step 2. Once you’ve installed NVM, you can use the following command to see a list of available Node.js versions:
Step 3.You can use the following command to install a specific version of Node.js:
nvm install 12.18.4
Step 4. You can also use the following command to see the version of Node.js that is currently in use:
Step 5. and you can use the following command to switch to a different version of Node.js:
nvm use 12.18.4
These are the basic usage of NVM. For more options and functionality you can check out the official documentation: https://github.com/nvm-sh/nvm
You have successfully installed the NVM on macOS . Let us know in the below comment box if you are facing any issue. We will happy to assist you.
Happy Learning !!!
Q. How to install nvm on mac terminal ?
A. Follow the above steps to install nvm on macos
Q. How do I find my nvm version on Mac?
A. Check above step. 4
Q. Where are nvm files located on mac