I tried both
'npm -g install bower' and 'sudo pm -g install bower'
still says
'zsh: command not found: bower'
I tried both
'npm -g install bower' and 'sudo pm -g install bower'
still says
'zsh: command not found: bower'
The first thing to check is whether the path npm
is installing bower
to is on your PATH
/path
. Run
echo $PATH $path | grep $(echo $(npm config get prefix)/bin) && echo Found
That should output the word Found
. If not, you can find out which directory to add by running:
echo $(npm config get prefix)/bin
The path can be changed in your ~/.zshenv
file.