Difference between revisions of "Js/Node/NVM/installing"

From Adam Meola - wiki
< Js‎ | Node‎ | NVM
Jump to navigation Jump to search
 
Line 10: Line 10:
 
*** <code>brew update</code>
 
*** <code>brew update</code>
 
*** <code>brew install nvm</code>
 
*** <code>brew install nvm</code>
: ====If you get "command not found"====
+
====If you get "command not found"====
 
* Open/create your bash profile:
 
* Open/create your bash profile:
 
** sudo nano ~/.bash_profile
 
** sudo nano ~/.bash_profile

Latest revision as of 14:50, 19 October 2020

On Mac

  • The easiest way is to use homebrew (a package manager for mac)
    • go to: https://brew.sh/
    • There should be a shell script on the home page. Copy this text to your clipboard
    • open your terminal
    • paste the code from the homebrew website
    • hit enter
    • wait for the installation to compplete
    • run:
      • brew update
      • brew install nvm

If you get "command not found"

  • Open/create your bash profile:
    • sudo nano ~/.bash_profile
      • (opens the file in nano)
    • add the following:
      • export NVM_DIR="$HOME/.nvm"
      • . "/usr/local/opt/nvm/nvm.sh"


On Windows

  • Go to: https://github.com/coreybutler/nvm-windows
  • Click the download link
  • Download the zip of you choice
    • nvm-noinstall is for USB keys (i think)
    • just use nvm-setup
  • Install (if applicable)
    • if so, restart the computer