Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove a Yeoman generator

Tags:

yeoman

I accidentally installed a generator that I don't want.
I can't find any method to remove it.
What should I do to accomplish this?

like image 822
funerr Avatar asked Jul 23 '13 08:07

funerr


People also ask

Is Yeoman still maintained?

Yeoman and Cookiecutter are dead; long live Copier! RecallStack.


3 Answers

Generators are just normal npm modules, so you can remove it with

npm uninstall -g generator-[nameOfGenerator]

like image 117
passy Avatar answered Oct 27 '22 01:10

passy


npm uninstall -g [generator-name] might not fix the UNMET DEPENDENCY. If you won't mind to reinstall the affected modules:

  1. cd to your npm directory (e.g. /usr/local/bin/node_modules)
  2. rm -rf [generator-name]
  3. npm cache clean
  4. npm install -g [generator-name]
like image 28
fuma Avatar answered Oct 27 '22 01:10

fuma


Search for generators with

npm list -g --depth=0 | grep 'generator'

Remove generator with

npm uninstall -g [generator-name] 

NOTE: Don't include '@[version] ' that follows the generator name

like image 5
BenB Avatar answered Oct 27 '22 02:10

BenB