Skip to content

Instantly share code, notes, and snippets.

@chsasank
Last active June 11, 2021 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chsasank/486d53f8d2a867fbae9478b947f12398 to your computer and use it in GitHub Desktop.
Save chsasank/486d53f8d2a867fbae9478b947f12398 to your computer and use it in GitHub Desktop.
Install NVM and node in MBA M1 without building
  1. Install rosetta2
  2. Install NVM using instructions here curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
  3. Add the stuff from the above command to zshrc to initialize nvm
  4. Go to x86 shell by arch -x86_64 zsh
  5. Install lts node using nvm in the intel shell: nvm install --lts
  6. Enjoy node in all shells (x86 or arm)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment