-
Notifications
You must be signed in to change notification settings - Fork 3k
npm 5 install corrupts package-lock.json #17081
Comments
Same issue here using npm 5.0.3 |
I'm also seeing the same issue on npm 5.0.3 |
Had the same issue - npm 5.0.3 Came across a potentially invalid entry in package-lock.json like this
Removing it apparently solved my problem. Do you have any idea why it has been created? |
I am having the same problem. Hopefully there will be a permanent fix for this soon instead of having to remove that section noted in the previous post. |
IF this feature would work as intended, it could eliminate many of the challenges associated with building our code. I sure hope this bug receives some attention soon... |
Our developers are currently having to run a pre-install script to delete the package-lock.json as a work around to this bug. We would love to have it working correctly so we can avoid having to do such work arounds. |
Using npm 5.0.3 and am having the same issue. |
Running into this as well on npm 5.0.2 |
Same issue here - npm 5.0.3 |
I cannot reproduce this on npm@5.0.4 Try updating to that version. |
Upgrading to 5.1 appears to fix this problem for us. Thank you! |
It still seems to be broken for me on 5.1. It looks like the problem in my case is that Chart.js is pulling in old packages via gitbook-cli |
I'm not sure whether this is really a bug in npm. It seems like the real issue was a malformed |
I'm opening this issue because:
What's going wrong?
The first time I run
npm install
it outputs:The second time I run
npm install
it outputs:The third time I run
npm install
it crashes:How can the CLI team reproduce the problem?
NOTE: I have fixed gitbook-cli so that it no longer causes this problem. The following reproduction steps will no longer work because Chart.js will now pull in the fixed gitbook-cli 2.3.1 instead of gitbook-cli 2.3.0
supporting information:
npm -v
prints: 5.0.2node -v
prints: v6.10.2npm config get registry
prints: https://registry.npmjs.org/The text was updated successfully, but these errors were encountered: