无法使用npm卸载软件包?

时间:2018-10-25 10:10:08

标签: node.js npm

为什么npm uninstall -g不卸载软件包?

$ which flourish
/Users/me/.nvm/versions/node/v8.3.0/bin/flourish
$ which npm
/Users/me/.nvm/versions/node/v8.3.0/bin/npm
$ npm uninstall -g flourish
up to date in 0.056s
$ flourish
  No command specified. Type ‘flourish help’ for help.

本地卸载也无济于事

$ npm uninstall flourish
up to date in 1.266s
$ flourish
  No command specified. Type ‘flourish help’ for help.

更新-完成上述操作后:

$ npm -g ls --depth=0
/Users/me/.nvm/versions/node/v8.3.0/lib
...
├── @flourish/sdk@3.6.0
├── @mapbox/geojson-area@0.2.2
├── @mapbox/geojson-merge@1.0.2

0 个答案:

没有答案