Tag Archives: generators

Yoman and installed generators not showing os x

I recently tried to install the ember generator for yeoman. I have been using the angularjs one for a while now and updating it as new versions became available.

I had installed the ember generator on the command line from npm

npm -g install generator-ember

I had yo on the command line. But when I ran this I would never see the ember generator.

yo --help

I tried cleaning the cache to ensure it was not a corrupted install from somewhere else.

npm -g cache clean
npm -g update

None of this worked so I had to go and remove yeoman completely and reinstall it

First I found the yeoman instance

which yo

Gave me /usr/local/bin/yo

ls -la /usr/local/bin/yo

Which returns that it is installed.

/usr/local/bin/yo -> ../lib/node_modules/yo/cli.js

I tried uninstalling from the npm

npm -g uninstall yo

The command completed successfully but I could still find yo on the file system.

ls /usr/local/share/npm/bin/yo

Only thing I could do at this stage is delete the yeoman as it was not removed by the npm uninstall command.  That means deleting the whole npm install in /lib/node_modules/ and the symbolic link to it in the /bin folder.

sudo rm -rf /usr/local/share/npm/lib/node_modules/yo
sudo rm  /usr/local/share/npm/bin/yo

and install it properly again.

npm -g install yo

and the next time I ran yeoman I saw my generators

yo --help