Thanks for wanting to contribute!

You have one more step.
Your email address will not be published.


Dual Install homebrew, nvm, and node on Apple M1

.zshrc


if [ "$(sysctl -n sysctl.proc_translated)" = "1" ]; then
local brew_path="/usr/local/homebrew/bin"
local brew_opt_path="/usr/local/opt"
local nvm_path="$HOME/.nvm-x86"
else
local brew_path="/opt/homebrew/bin"
local brew_opt_path="/opt/homebrew/bin"
local nvm_path="$HOME/.nvm"
fi

export PATH="${brew_path}:${PATH}"
export NVM_DIR="${nvm_path}"

[ -s "${brew_opt_path}/nvm/nvm.sh" ] && . "${brew_opt_path}/nvm/nvm.sh" # This loads nvm
[ -s "${brew_opt_path}/nvm/etc/bash_completion.d/nvm" ] && . "${brew_opt_path}/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion

You Might Also Like...


0 responses to this post

Be the first to leave a comment!


Leave a Reply

Your email address will not be published.

Get Connected With Me

I'll never share your email with anyone else.