-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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] Add option to disable integrity check #517
Comments
My concerns are not about streamlining publishing packages, but rather about dealing with the "integrity checksum failed" error itself. I've found a workaround, but initially I was caught off guard. I wasn't sure what |
I agree with the author.
And the whole process becomes a nightmare since it's impossible to install a package which is unrelated to |
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
Since npm doesn't support mechanism like Maven SNAPSHOT(does it?), to fix a bug in a shared package and test if the bug is fixed in dependents, I need to do the following:
What a stupid workflow!
When
In the development phase, I want to republish/redeploy a npm package to repository server without updating package.json in each dependent. If I disable package-lock, of course that can be done easily, but I cannot, I need package-lock.json to lock version number of dependencies. with package-lock.json, installing an republished/redeployed dependency may result in error like 'integrity checksum failed'
Where
How
So my proposal is to add an CLI option (like
--disable-integrity-check
) fornpm install
and any other npm command which may trigger package integrity check, just like adding env varNODE_TLS_REJECT_UNAUTHORIZED=0
to disable ssl certificate validation.Current Behavior
Expected Behavior
I want
npm install
to support an option like--disable-integrity-check
, then npm won't check integrity of downloaded packages according to package-lock.jsonor more specifically,
if a dependency's pre-relaese tag ends with specific suffix, e.g.
.snapshot
, then npm will not check integrity of redeployed/republished dependency.Who
References
The text was updated successfully, but these errors were encountered: