2

When I do npm list --global, one package, phonegap, shows as invalid.

npm ERR! invalid: phonegap@5.0.0-0.28.1 /usr/local/lib/node_modules/phonegap

No other packages have any errors or problems. I’ve tried to look into this, and learned that the message means a dependency is unfulfilled, but I can’t figure out which one. If I run npm update --global phonegap it exits cleanly, with no errors.

I originally installed npm & node via Homebrew, if that’s relevant. Here’s my full list of globally installed packages.

How do I diagnose this?

Community
  • 1
  • 1
duozmo
  • 1,698
  • 5
  • 22
  • 33

1 Answers1

0

Have you tried changing the permissions for that package? I recently had a similar problem with global packages and it turned out to be a permissions issue

https://docs.npmjs.com/getting-started/fixing-npm-permissions

Zacharyh
  • 1
  • 1
  • Thanks, but the question is really about understanding that message, not just making it go away. – duozmo Sep 23 '15 at 15:24