Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Can't uninstall global package - up to date in 0.075s #17905

Open
Eschon opened this issue Jul 24, 2017 · 10 comments
Open

Can't uninstall global package - up to date in 0.075s #17905

Eschon opened this issue Jul 24, 2017 · 10 comments
Labels

Comments

@Eschon
Copy link

Eschon commented Jul 24, 2017

I'm opening this issue because:

  • [x ] npm is doing something I don't understand.

What's going wrong?

I try to uninstall a global package and it doesn't work. I've found a few similar issues like #16738 but in my case npm doesn't crash it just displays up to date in 0.075s and the global package is still there.

How can the CLI team reproduce the problem?

I have a global installation of stylelint.
When I type npm uninstall -g stylelint I get the message that I mentioned above.
The package is still there.

supporting information:

  • npm -v prints: 5.3.0
  • node -v prints: v6.3.1
  • npm config get registry prints: https://registry.npmjs.org/
  • Windows, OS X/macOS, or Linux?: OS X 10.11.6
@kenany kenany added the npm5 label Aug 20, 2017
@gnesher
Copy link

gnesher commented Sep 6, 2017

Any updates?

@mrzool
Copy link

mrzool commented Oct 1, 2017

Same issue.

  • npm -v: 5.3.0
  • node -v: v8.6.0
  • Mac OS X 10.11.6

Any pointer?

@jcbp
Copy link

jcbp commented Nov 7, 2017

Same issue.

npm -v: 5.5.1
node -v: v6.2.0
Windows 7 Professional, Service Pack 1

@zhenizhui
Copy link

same problem when I want to "npm -g uninstall pm2"

  • npm -v : 5.4.2
  • node -v: 8.9.1
  • Win 10
  • git bash

@EugeneSnihovsky
Copy link

Same issue

  • npm -v prints: 5.6.0
  • node -v prints: v8.6.0
  • OS X 10.12.6 Sierra
Eugenes:desktop-app eugene$ npm uninstall -g webdriver-manager
up to date in 0.027s

@blundercode
Copy link

Any update on this issue?

@allanpoppe
Copy link

allanpoppe commented Jan 16, 2018

Same issue.

npm -v
5.5.1
node -v
v8.9.3

UPDATE
Solved updating npm.

npm install npm@5.6.0 -g

If you have issues updating npm (with and maybe without nvm), see this thread.

@blundercode
Copy link

blundercode commented Jan 18, 2018

Might not be helpful but a complete uninstall of Node and removal of all my Global packages manually, then getting a fresh install of Node and NPM fixed it for me. Not very useful but it worked for me.

@mtarnovan
Copy link

$ npm -v; node -v
5.6.0
v9.2.0

Problem persists for me after upgrading.

@cshg
Copy link

cshg commented Jun 21, 2018

This issue appears when the global package you are trying to uninstall does not exist at the path where your current npm version is installed. If you have installed the package with a different version of npm at a different location your current npm version can't find it.
To solve it do the following to find the path to npm and your package:

which npm
which nameofyourpackage

Either your package is not found or at a different location then your current npm installation. for example:

/usr/local/bin/nameofyourpackage
/Users/youruser/.nvm/versions/node/v9.x.x/bin/npm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests