I am setting for MEAN stack on Mac Big Sur (M1) and I am unable to install packages due to zsh: command not found.
Here is what I have done so far.
installed nvm (curl code from GitHub), nvm install node, ~/.nvm/nvm.sh.  Tested with -v nvm and node -v, confirmed to be working.
echo $0 $ZSH_VERSION shows -zsh 5.8
npm install -g @angular/cli got zsh: command not found: npm.
Followed Command not found after npm install in zsh which recommended to add source /home/YOUUSERNAME/.bash_profile at the beginning of ~/.zshrc file.
To edit ~/.zshrc followed Editing the ~/.zshrc file
Did vim ~/.zshrc, in the first line of ~/.zshrc file, added source /home/Dickson_Local_AC/.bash_profile.
Did ctrl + X  to save, bottom of page showed -- INSERT --, closing terminal only gives terminate or cancel, chose terminate. The changes did not save, opening the file only shows ~/.zshrc" [New] at the bottom line.
Now npm, node -v show zsh: command not found. Reinstalled nvm, same problem.
What am I doing wrong? Can you lead me out of the stalemate and advice on how to install MEAN packages?