Skip to content

Instantly share code, notes, and snippets.

@MadaShindeInai
Last active November 29, 2023 19:32
Show Gist options
  • Save MadaShindeInai/637d5b52053c32f2fecc139f9868554e to your computer and use it in GitHub Desktop.
Save MadaShindeInai/637d5b52053c32f2fecc139f9868554e to your computer and use it in GitHub Desktop.
Install Node on Mac

Steps:

  1. Install NVM curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
  2. Open zshrc: open ~/.zshrc
  3. Add this in the end of file:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
  1. Then install NodeJS: nvm install {node_version}
  2. Check that all is good: node -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment