How to uninstall Gulp CLI from NPM globally?

2019-08-10 16:22发布

问题:

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

回答1:

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

npm rm -g gulp


回答2:

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


回答3:

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



标签: npm