Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NVM Not Working on ZSH but is on Bash - M1 Mac Mini

I followed this process for installing Node on M1 Mac Mini.

  1. First I run this command to install xCode Command Line Tools:
    sudo xcode-select --install

  2. Next I run this command to create a bash_profile:
    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash

  3. Next I run this command to install node
    nvm install v15

Now in both the Mac Terminal and VS Code Terminal, if I try node -v or nvm -v when using zsh I get a command not found response. When in bash it works fine.

Have I done something completely wrong? Or most likely, I'm missing a very obvious point?

Any assistance will be gratefully received.

like image 677
Paul Allen Avatar asked Dec 06 '25 20:12

Paul Allen


1 Answers

I managed to get this working by creating a .zshrc file and pasting the following into the file source /Users/YOUUSERNAME/.bash_profile.

like image 127
Paul Allen Avatar answered Dec 08 '25 12:12

Paul Allen