-
Notifications
You must be signed in to change notification settings - Fork 3k
npm WARN registry Unexpected warning for https://registry.npmjs.org/: #17146
Comments
Hi, had the same problem here. It seems it's affecting only npm version 5.x.x. Downgraded to npm@4.6.1 and all packages were installed correctly. |
Update 14.06 (3/3): after deleting NPM cache (with In my issue, the main differences in
Hope this helps… Sorry for the noise, if my issue was not really linked to the one reported. Update 14.06 (2/3): back to the Mac OSX and Windows 8 systems, with the freshly updated
What is quite confusing, is that this EINTEGRITY error message does not indicate which module has a checksum error: it only states the source registry https://registry.npmjs.org/. Update 14.06 (1/3): solved the issue by deleting Not sure about the root cause and if it relates to this issue – may be you should ignore my comment hereafter. I'm still a bit confused of why the same Hello. I encountered the same problem on RHEL6, while trying to build an app that requires
No problem though for the exact same build on Windows 8. Tried to clean my |
I hit this problem while experimenting with ProGet npm registries, which allowed me to publish the same package version multiple times (thus changing the hash). I solved it by deleting the I'm no expert, but I'm curious which package caused this. Can you look in your |
@JonathonRichardson Hi Jonathon, the first packages with which I encountered these SHA1/SHA512 checksum warnings is But the issue does not seem to be related to the checksums on the registry, rather with the way NPM calculates these checksums on different platforms. I realized that depending on which system I was, So, for me, it is either a platform dependent issue or, IMO more likely, what was available in the local cache on the different systems. |
This is still broken. It fucks up checksums, and electron won't install correctly with npm version 5, you need to downgrade to 4 for it to work. |
I also have a similar issue,
It would be pretty cool if it said for which package the checksum failed ... It fetches hundreds of packages and throws this in the middle. not very useful for debugging. By the way, I run this in a docker image that doesn't have a cache (yet) |
That is the way i resolved this problem I founded it at #7506 with the comment of @aliaksandr-master |
@nguyentrucxinh your link is broken.... |
@luciagirasoles i fixed it, thank you! |
@nguyentrucxinh shouldn't that 2nd line be ...since |
It won't work on any directory, empty or not. |
@nguyentrucxinh solution worked for me. Thanks. |
I run into this problem when I'm using a react command: create-react-app, and it turned out as an ERROR. Then I delete all the node modules globally, then reinstall create-react-app, and everything works fine. |
npm ERR! code EINTEGRITY drag npm4 ,it sill bad |
npm cache clear --force and npm install --no-shrinkwrap --update-binary resolved this issue for me. |
I don't understand how people are suggesting removing the package-lock.json or npm-shrinkwrap.json is a solution. Yes, you may not get integrity warnings anymore, but you've also removed all the guarantees the lock/shrinkwrap was put in place to give you. Unless I've missed something, I haven't seen any explanation by anyone as to why these warnings are happening in the first place? |
This is a solution that was effective for others who ran into issues with: npm ERR! code EINTEGRITY npm ERR! sha1-gEtYFQQmxo5NomZJDUPsY52VlT0= integrity checksum failed when using sha1: wanted sha1-gEtYFQQmxo5NomZJDUPsY52VlT0= but got sha1-vefnCRPgF/ea/hiJcK2+2MALOFg=. (27877159 bytes) More info available here: npm/npm#17146
I'm seeing this on a travis docker build, where I have a brand new node:8.9.4-alpine container on each build. Sometimes it happens, sometimes it doesn't. Just restarting the build (sometimes) fixes it, with exactly the same package.json and package-lock.json. Something is seriously broken here. |
Which npm version is used? It is not happening here anymore. Also this might be a connection / network issue. |
node:8.9.4-alpine is currently using npm v5.6.0. This happened to three of my travis-ci builds yesterday out of about... 20ish. Two back-to-back, another a few hours previously, with lots of successful builds inbetween. What sort of connection/network issue did you have in mind? :) |
So far all Travis builds with npm 5 do not have this issue, at least in the projects where I contribute to and watch the builds. |
Are any of your projects on alpine, by any chance? I've run into enough other muslc weirdness in the past 24 hours than I'm perhaps overly suspicious. :P |
Not sure but at least some of the docker containers use the Alpine distro afaik. |
Happened to me twice today. Looking at the build, I notice a bunch of errors about missing files:
Different missing files in each run. |
I fixed this issue by completely removing npm and installing yarn |
This is not a fix. |
For me the necessary steps were:
Then it worked. |
I was hit with the same EINTEGRITY error but for me it turned out to be my repo. I'm using Nexus3 for the local repo & proxy of the main npm repo but it turned out the local metadata got corrupted. Version 1.8.0 was released on Monday (Feb 5) and upgrading it, invalidating the proxy & redeploying affected artefacts in the local repo fixed the problem. |
I'm getting this warning when installing pm2 on an Ubuntu docker image, running on a Fedora host. It's docker, so the install is fresh, and should "just work". I'm not a frequent node user, and experiences like this don't inspire confidence. Reliably delivering cryptographically verified packages across platforms and architectures seems like a pretty basic task for any package manager... |
I have deleted,
Worked like a charm. |
Lol, installing yarn is not a solution. |
I've experienced the same thing as grantbrown above. Fresh install, Experiences like this don't inspire confidence. |
@ediweissmann |
I only did "npm cache verify" and my problem was solved |
@olange Thanks so much so much for the solution it really worked for me. |
Downgrading to Node v6.14.2 worked for me |
This probably cleared the caches. Try upgrading / downgrading npm. |
So I have this issue, when So just try to align the versions, it helps. But still, I would like to know WHY this happens? Both |
Had the same issue - for me it had not been an issue with npm but with our private package repository (nexus 3.8). To reproduce it I used npm 6 + 3 but I assume it's the same with different npm 5 versions: Reproduce:
The 2nd publish patches the package content and the sha1-checksum but our repository still kept the sha512 checksum. Results:
Solution:a) Try always to publish packages with a npm version that generates the both checksums. (preferred) |
I'm opening this issue because:
What's going wrong?
When I run
npm install
all of the packages listed in "dependencies" are missing. Can be confirmed when runningnpm outdated
. I suspect this is related to the following error that shows up when I run npm install.npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EINTEGRITY: sha512-ijDLlyQ7s6x1JgCLur53osjm/UXUYD9+0PbYKrBsYisYXzCxN+HC3mYDNy/dWdmf3AwqwU3CXwDCvsNgGK1S0w== integrity checksum failed when using sha512: wanted sha512-ijDLlyQ7s6x1JgCLur53osjm/UXUYD9+0PbYKrBsYisYXzCxN+HC3mYDNy/dWdmf3AwqwU3CXwDCvsNgGK1S0w== but got sha1-Vx4PGwYEY268DfwhsDObvjE0FxA=. (2069 bytes)
How can the CLI team reproduce the problem?
I'm assuming just run
npm install
https://gist.github.com/tomciopp/8851f07a17dd266dcfb34e40fa794a62
supporting information:
npm -v
prints: 5.0.3node -v
prints: v8.1.0npm config get registry
prints: https://registry.npmjs.org/The text was updated successfully, but these errors were encountered: