My main problem is that I am getting the error zsh: command not found $
when I run $ gulp serve
. This is after installing a Yeoman webapp generator.
I've checked these other sources:
- commands not found on zsh'
- zsh command not found issue
- Command not found - Oh-My-Zsh
- How to specify a custom path for my .zshrc file?
- zsh: command not found: modernizr
I'm not sure which one is most relevant to me. It seems like most of the issues people have are caused by the PATH being messed up. I also believe my issue is with my PATH. When I run echo $PATH
, this is what I get:
echo $PATH
/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/thisisme/.rvm/gems/ruby-2.2.1/bin:/Users/thisisme/.rvm/gems/ruby-2.2.1@global/bin:/Users/thisisme/.rvm/rubies/ruby-2.2.1/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.6/bin:/usr/X11/bin:/usr/local/mysql/bin:/Users/thisisme/.rvm/bin:/Users/thisisme/.rvm/gems/ruby-2.2.1/bin:/Users/thisisme/.rvm/gems/ruby-2.2.1@global/bin:/Users/thisisme/.rvm/rubies/ruby-2.2.1/bin:/usr/local/bin:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.6/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/mysql/bin:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.6/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/mysql/bin:/Users/thisisme/.rvm/bin:/Users/thisisme/.rvm/bin
When I look in my ~/.zshrc file, I get
export PATH=$PATH:"/Users/thisisme/.rvm/gems/ruby-2.2.1/bin:/Users/thisisme/.rvm/gems/ruby-2.2.1@global/bin:/Users/thisisme/.rvm/rubies/ruby-2.2.1/
and so on... (It goes on and on from there, but hopefully you get the idea.) One of these answers suggested using exec zsh -1
; now I get
$ gulp serve
zsh: command not found: $
[1] 34254 exit 127 $ gulp serve
My user PATH looks kind of crazy. I have Python and Ruby installed because I installed Jekyll in the past but I don't use them often.
It's been a while since I used Terminal, but I wrote myself this note to use rvm reinstall 2.1.4
. Unfortunately, I got an error Error: /usr/local/opt/makedepend not present or broken
Please reinstall makedepend. Sorry :(
. So, this is another problem that I am not sure is necessary to fix this problem. But I tried it, so I'm including it.
If anyone has tips on where to look or how to help, preferably some place with instructions with steps because I'm still learning, that would be very helpful.
Edit: The answer was that the generator did not install gulp when it built out the scaffolding for the webapp.