How to uninstall Gulp CLI from NPM globally?

2019-08-10 15:52发布

I have the following package installed globally via npm:

+-- gulp-cli@2.0.1 (github:gulpjs/gulp-cli#4782b9a582ce7cc7e009073705a565b57d235332)

I have tried to uninstall it like so...

npm uninstall gulp-cli@2.0.1

But it does not remove it. How can I get this package removed from my global location?

I'm on npm version 6.1.0

标签: npm
3条回答
女痞
2楼-- · 2019-08-10 16:17

I was experiencing the same problem but when I used the following code, it worked:

npm rm -g gulp
查看更多
贼婆χ
3楼-- · 2019-08-10 16:17

Thanks to R. Wanjohi I figured it out for my machine. I had to do the following to get the global version of gulp cli off my machine:

npm rm -g gulp-cli
查看更多
ゆ 、 Hurt°
4楼-- · 2019-08-10 16:30

You need to uninstall it globally (add the -g tag)

npm uninstall -g gulp-cli@2.0.1

Here is the npm docs: https://docs.npmjs.com/cli/uninstall.html

查看更多
登录 后发表回答