How to remove a Yeoman generator

后端 未结 4 1955
臣服心动
臣服心动 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条回答
  •  眼角桃花
    2021-02-03 18:42

    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

提交回复
热议问题