-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Say which package failed during npm install
#473
Comments
refers to #298 maybe |
#298 is too vague, and no easy way to reproduce. In any case, I came here not with a private package, Today, I tried in install packages ( The steps to reproduce Anyways, the steps to reproduce are as follows. Sometimes it's more elaborate (wordy), sometimes not. And the reason why it is so is a race condition. The output is supposed to be as follows:
But under some conditions an exception is thrown and never caught, and the global event handler takes control. It doesn't know much, and such is the result:
The reasons It all starts here. Now, Here are both cases interspersed with debugging output. Fisrt the uncaught exception case:
Then, the expected flow:
Conclusion So, not letting exceptions being uncaught is pretty much desirable. Although, knowing all this I now understand that I could find the culprit by its integrity checksum in |
So, we've tried also a lot of things. The problem was not the npm client but the npm servers. We've switched to GitHub packaged and still using the npm client. Now there are no problems anymore. |
Oh, and I think it's not a good idea to change the checksum in the package-lock.json file. |
Surely, but it's not clear what exactly happened. |
npm If your bug is preproducible on If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo Closing: This is an automated message. |
What / Why
During an
npm install
, getting an error (specifically, in this case acode EINTEGRITY
error) does not state which package is throwing the error. This complicates debugging a lot, which the installer should clearly have the information about which package failed.When
npm install
but one or more packages fail to installWhere
How
Current Behavior
Expected Behavior
Who
References
The text was updated successfully, but these errors were encountered: