Clarify the M1 shell instructions
The instructions seemed to encourage the misconception that `arch -x86_64 zsh` somehow modifies the default architecture for `zsh`, an operation which would need to be "reverted". In fact, `arch -x86_64 …` merely spawns a new process under the selected architecture.
parent
b19d8dbbba
commit
621ccc5d13
|
@ -919,13 +919,13 @@ arm64
|
||||||
$ nvm install v12.20.1
|
$ nvm install v12.20.1
|
||||||
# Now uninstall the version we want to replace:
|
# Now uninstall the version we want to replace:
|
||||||
$ nvm uninstall v14.15.4
|
$ nvm uninstall v14.15.4
|
||||||
# Set the architecture for our shell to 64-bit X86:
|
# Launch a new zsh process under the 64-bit X86 architecture:
|
||||||
$ arch -x86_64 zsh
|
$ arch -x86_64 zsh
|
||||||
# Install node using nvm. This should download the precompiled x64 binary:
|
# Install node using nvm. This should download the precompiled x64 binary:
|
||||||
$ 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:
|
# It is now safe to return to the arm64 zsh process:
|
||||||
$ arch -arm64 zsh
|
$ exit
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue