I am unable to run certain (macos) terminal commands after switching back to bash from temporarily using zsh. One of the commands is 'amplify publish' which returns the following error:
bash: amplify: command not found
I have installed the amplify cli globally using: npm install -g @aws-amplify/cli
echo $PATH returns /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
and the contents of my .bashrc file is as follows:
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
export EDITOR="code --wait"
Amplify is not the only command that is suddenly missing, but this is the most pressing.
Thanks in advance for your help!
npm root -gto see where global packages are installed. - chepnerzshconfiguration to see which directory it added toPATHthat yourbashconfiguration does not. - chepner/Users/john/.npm-packages/binexist? - chepner