yo: command not found

npm, ubuntu, yeoman

Solution

I really don't know why the heck it got lost. So after a bunch of tests I resolved creating a symbolic link.

gabriela@Gabriela-Ubuntu:/$ sudo ln -s /home/gabriela/npm/bin/yo /usr/bin/yo
gabriela@Gabriela-Ubuntu:/$ yo
[?] What would you like to do? (Use arrow keys)
‣ Run the Angular-bootstrap generator (0.4.1) 
  Update your generators 
  Install a generator 
  Find some help 
  Get me out of here!

Problem

I've installed nodejs with chris lea's version: ``` sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs npm ``` Than installed yeoman, grund-cli and bower using npm: ``` sudo npm install -g yo grunt-cli bower ``` Everything went alright including the "[Yeoman Doctor] Everything looks alright!" at the end of yeoman's install. ``` /home/gabriela/npm/bin/yo -> /home/gabriela/npm/lib/node_modules/yo/cli.js > yo@1.1.2 postinstall /home/gabriela/npm/lib/node_modules/yo > node ./scripts/doctor ``` Than I run: ``` gabriela@Gabriela-Ubuntu:~$ which node /usr/bin/node gabriela@Gabriela-Ubuntu:~$ which npm /usr/bin/npm gabriela@Gabriela-Ubuntu:~$ which bower /usr/bin/bower gabriela@Gabriela-Ubuntu:~$ which yo gabriela@Gabriela-Ubuntu:~$ yo yo: command not found gabriela@Gabriela-Ubuntu:~$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:$JAVA_HOME:$JRE_HOME ``` What went wrong? Do I have to execute any other command to install yeoman properly?

Original source

Related problems