Closed aheckmann closed 6 years ago
I do not believe this belongs over here. This is already being done in pacote
, where information is more contextual and complete, so the messages can be better (and cover a wider range of error cases).
Thanks for the contribution, and this was definitely a serious UX issue, so I want to appreciate the time taken to put this patch together. I'm closing this, though, since it's already implemented elsewhere. Cheers!
There are a handful of open integrity issues on npm, one of which is a feature request to expose the name of the package which failed the integrity check. This PR adds the name of the failed package to the error message when available. Including the name of the package in the error message allows us to know which module to republish if the package-lock integrity field is ok.
NPM: 5.5.1 & 5.6.0 NodeJS: 4 & 8
Old log snippet:
New log snippet:
See https://github.com/npm/npm/issues/17459