Browse Source

[readme] Update M1 macOS troubleshooting instructions

David Zulaica 4 years ago
parent
commit
d5c1441a83
  1. 12
      README.md

12
README.md

@ -909,17 +909,11 @@ $ nvm install v12.20.1
$ nvm uninstall v14.15.4 $ nvm uninstall v14.15.4
# Set the architecture for our shell to 64-bit X86: # Set the architecture for our shell to 64-bit X86:
$ arch -x86_64 zsh $ arch -x86_64 zsh
``` # Install node using nvm. This should download the precompiled x64 binary:
At this point in time, we are still in the shell that is running using the M1 architecture.
So we now need to open a new terminal window in order to run our shell in the 64-bit X86 architecture.
```sh
# `node` will not be on the path in this new terminal window.
# So install it:
$ nvm install v14.15.4 $ nvm install v14.15.4
# Now check that the architecture is correct: # Now check that the architecture is correct:
$ node -p process.arch $ node -p process.arch
x64 x64
# It is now safe to revert zsh back to the native architecture:
$ arch -arm64 zsh
``` ```

Loading…
Cancel
Save