Install Node Version Manager (NVM)

Installing Node Version Manager (NVM)

This documentation will only follow the installation of NVM for Mac laptops.

Installtion Guide

  1. Open your terminal

  2. Enter the following code to begin:

    - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
  3. Enter the following code:

    - source ~/.bashrc
  4. If the /.bashrc file does not exist then first create the directory by entering:

    mkdir ~/.bashrc

    Then enter step 3 into your terminal

  5. 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