npm -g ERR! extraneous #15436

Closed
sandrodz opened this Issue Jan 10, 2017 · 5 comments

Projects

None yet

2 participants

@sandrodz
sandrodz commented Jan 10, 2017 edited

I'm opening this issue because:

  • npm is crashing.
  • npm is producing an incorrect install.
  • [x ] npm is doing something I don't understand.

What's going wrong?

npm -g ls produces errors:

d4g1y

How can the CLI team reproduce the problem?

I'm not sure. I've installed node via homebrew, than added n for version managment, I've used node/npm inside docker containers for a while but went back to sys installed one because of slow downs inside container. Problem is with node on host machine.

supporting information:

  • npm -v prints:
    3.10.10
  • node -v prints:
    v6.9.4
  • npm config get registry prints:
    https://registry.npmjs.org/
  • Windows, OS X/macOS, or Linux?:
    osx
@legodude17
Contributor

Try npm i -g npm@latest

@sandrodz

@legodude17 errors don't display anymore, what is this magic? any ideas what happened?

@legodude17
Contributor

It updated and reinstalled npm 😄

@sandrodz

@legodude17 that is obvious, but the error, how did it disappear?

@legodude17
Contributor

The error was with some corruption or something in the npm installation the was making npm think that some of its own packages were extraneous, so then you reinstalled it completely.

@sandrodz sandrodz closed this Jan 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment