Yo: command not found while running yoman angular generator

I've read every SO question related to it and can't seem to get yoman to work. I am trying to start yoman angular generator with yo angular

but I keep getting error:

yo: command not found

I'm sure it has something to do with my .bash_profile, which looks like this:

export PATH="/usr/local/bin:$PATH"
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"

export GITAWAREPROMPT=~/.bash/git-aware-prompt
source $GITAWAREPROMPT/main.sh
export PS1="\u@\h \w \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ "

export NODE_PATH="/usr/local/lib/node_modules:/Users/jamesontrinker/npm/lib/node_modules"

      

I'm pretty clueless about the right paths and all of this. Any ideas?

+3


source to share


1 answer


If you install yo with -g, there should be a static link created in /usr/bin

Looks like:/usr/bin/yo -> /usr/lib/node_modules/yo/cli.js



So, while you're /usr/bin

in $PATH

, you have to work.

-1


source







All Articles