0

I have installed cordova on my mac and want to uninstall it.

I've tried the following:

npm uninstall cordova -g

but I get the following error:

npm WARN uninstall not installed in /usr/local/Cellar/node/0.10.32/lib/node_modules: "cordova"

Any ideas?

Weblurk
  • 6,562
  • 18
  • 64
  • 120

1 Answers1

1

There are know issues with the way homebrew and npm play together. From this article by Dan Herbert

There's an NPM bug for this exact problem. The bug has been "fixed" by Homebrew installing npm in a way that allows it to manage itself once the install is complete. However, this is error-prone and still seems to cause problems for some people. The root of the the issue is really that npm is its own package manager and it is therefore better to have npm manage itself and its packages completely on its own instead of letting Homebrew do it.

Aside from that your node version is out of date. If you can upgrade you should do so to Node v4.1.2. Follow the instructions on the node.js site.

br3w5
  • 4,403
  • 5
  • 33
  • 42