How to remove a Yeoman generator

后端 未结 4 1780
臣服心动
臣服心动 2021-02-03 17:48

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?

4条回答
  •  闹比i
    闹比i (楼主)
    2021-02-03 18:25

    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]

提交回复
热议问题