Install Node Version Manager (NVM)
Table of Contents
Installing Node Version Manager (NVM)
This documentation will only follow the installation of NVM for Mac laptops.
Installtion Guide
-
Open your terminal
-
Enter the following code to begin:
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
-
Enter the following code:
- source ~/.bashrc
-
If the /.bashrc file does not exist then first create the directory by entering:
mkdir ~/.bashrc
Then enter step 3 into your terminal
-
Lastly enter the following command into your terminal:
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm