2

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

klewis
  • 6,603
  • 13
  • 54
  • 95

4 Answers4

6

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
klewis
  • 6,603
  • 13
  • 54
  • 95
1

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

npm rm -g gulp
R. Wanjohi
  • 51
  • 8
0

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

Lan Dang
  • 1
  • 1
  • I wish you were right. But, the package still gets listed after attempting to do this exact thing. – klewis Dec 28 '18 at 04:56
  • Do you have an inform message when you uninstall the package (me is `removed 318 packages in 6.252s`)? And yet how do you know your package is still there? – Lan Dang Dec 28 '18 at 05:14
  • 3
    It just says __up to date in 0.042s__. And I know because when I run __npm list -g --depth=0__ it shows it listed. This is crazy. – klewis Dec 28 '18 at 05:19
0

it's pretty simple, to uninstall a global package run

npm uninstall -g <package-name>

to verify run

npm ls -g --depth=0

for short videos

Saahithyan Vigneswaran
  • 6,047
  • 3
  • 30
  • 44