Search code examples
yeomandeprecatedyeoman-generatoryo

How do I do a clean install of Yeoman?


I'm trying to do a clean install of Yeoman, but the Yo command persists after I tried the following commands to remove it:

sudo npm remove -g yeoman
npm remove -g yeoman
sudo npm remove -g yo
npm remove -g yo
brew uninstall yeoman
brew uninstall yo
sudo brew uninstall yo
sudo brew uninstall yeoman

Then when I do a Yo or Yo doctor, yeoman says:

Allo Herald! What would you like to do? --> Get me out of here!

What am I missing here?

Some generators are deprecated, some not working so a reinstall is in order I think.


Solution

  • Here's my educated guess, you have (or had) multiples versions of npm installed. These versions installed packages in different global directories, so yo is installed in a folder that newer versions on npm you're installing don't know about.

    Anyway, best thing to do is check where the yo binary is with which yo. Then delete it, and maybe nuke the folder if there's a bunch of older npm packages in there.