-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
EINTEGRITY error doesn't say for which module #872
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
Comments
So I just had to look in the shrinkwrap.yaml. For me the module was:
Could this integrity fail between OS's? Could it be that it is reusing a package from the store that is broken?
|
Same issue reported with npm and |
The error is thrown from here. The invalid package can be used to write a test |
I don't think it is about this package in particular. I am thinking its about a partial tar download occurring in |
I suspect this is the root cause for similar issues I've experienced in poor wifi environments. |
@jbergstroem do you think we need to redownload the package if this error occurs? |
See more detail here: npm/npm#16861 (comment) I think its an issue with Re-download might be a good workaround for now though. Should definitely have message letting user know what is going on though and have a retry limit. |
I was just downloading a module on a patchy connection and got this error:
Running |
I just hit this again... $ lsl ~/.pnpm-store/2/registry.npmjs.org/warning/3.0.0
total 24
drwxr-xr-x 6 Vaughan staff 204B 21 Aug 11:35 .
drwxr-xr-x 4 Vaughan staff 136B 21 Aug 11:35 ..
-rw-r--r-- 1 Vaughan staff 1.1K 21 Aug 11:35 integrity.json
drwxr-xr-x 3 Vaughan staff 102B 21 Aug 11:35 node_modules
lrwxr-xr-x 1 Vaughan staff 20B 21 Aug 11:35 package -> node_modules/warning
-rw-r--r-- 1 Vaughan staff 2.9K 21 Aug 11:35 packed.tgz
$ lsl ~/.pnpm-store/2/registry.npmjs.org/material-design-icons/
total 0
drwxr-xr-x 4 Vaughan staff 136B 21 Aug 11:35 .
drwxr-xr-x 1834 Vaughan staff 61K 21 Aug 11:36 ..
drwxr-xr-x 3 Vaughan staff 102B 21 Aug 11:35 3.0.1
drwxr-xr-x 19 Vaughan staff 646B 21 Aug 11:37 3.0.1_stage
$ lsl ~/.pnpm-store/2/registry.npmjs.org/material-design-icons/3.0.1
total 26224
drwxr-xr-x 3 Vaughan staff 102B 21 Aug 11:35 .
drwxr-xr-x 4 Vaughan staff 136B 21 Aug 11:35 ..
-rw-r--r-- 1 Vaughan staff 13M 21 Aug 11:37 packed.tgz.3627129203
$ lsl ~/.pnpm-store/2/registry.npmjs.org/material-design-icons/3.0.1_stage
total 72
drwxr-xr-x 19 Vaughan staff 646B 21 Aug 11:37 .
drwxr-xr-x 4 Vaughan staff 136B 21 Aug 11:35 ..
-rwxr-xr-x 1 Vaughan staff 13B 2 Sep 2016 .npmignore
-rw-r--r-- 1 Vaughan staff 11K 2 Sep 2016 LICENSE
-rw-r--r-- 1 Vaughan staff 1.9K 2 Sep 2016 README.md
drwxr-xr-x 12 Vaughan staff 408B 21 Aug 11:35 alert
drwxr-xr-x 12 Vaughan staff 408B 21 Aug 11:36 av
-rw-r--r-- 1 Vaughan staff 289B 2 Sep 2016 bower.json
drwxr-xr-x 12 Vaughan staff 408B 21 Aug 11:36 communication
drwxr-xr-x 17 Vaughan staff 578B 21 Aug 11:36 content
drwxr-xr-x 12 Vaughan staff 408B 21 Aug 11:36 device
drwxr-xr-x 12 Vaughan staff 408B 21 Aug 11:37 editor
drwxr-xr-x 12 Vaughan staff 408B 21 Aug 11:37 file
-rwxr-xr-x 1 Vaughan staff 3.8K 2 Sep 2016 gulpfile.babel.js
drwxr-xr-x 12 Vaughan staff 408B 21 Aug 11:37 hardware
drwxr-xr-x 11 Vaughan staff 374B 21 Aug 11:37 iconfont
drwxr-xr-x 6 Vaughan staff 204B 21 Aug 11:37 image
-rw-r--r-- 1 Vaughan staff 48B 2 Sep 2016 index.js
-rw-r--r-- 1 Vaughan staff 872B 2 Sep 2016 package.json So it seems like the
So the issue here first of all is that there should be an error when
|
So I think what is happening is that the npm registry is occasionally prematurely closing its socket for large file downloads, which is not being reported as an error by We need to add re-download logic if the integrity fails. And is the partially unpacked tar cleaned up on integrity failure? |
Ok I feel like I have got to the bottom of this issue now. Details here: https://github.com/npm/registry/issues/202 For pnpm, we need to check the |
There is an old issue about Content-Length: #423. If we solve this, we can close that one |
Yep. pnpm/package-store is what needs changing I think.
…On Mon 21. Aug 2017 at 2:27 PM, Zoltan Kochan ***@***.***> wrote:
There is an old issue about Content-Length: #423
<#423>. If we solve this, we can close
that one
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#872 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AARLRT1dPVdKHa1M3P9dwUZ6oXQQZn7_ks5saXeagaJpZM4O2t5J>
.
|
Apologies, didn't see this until now. I'd either bail early or retry. Seeing how |
This is the solution npm will apply but they won't add it to The hardest part for me is to write an integration test for it |
Published with pnpm@1.13.1 |
Uh oh!
There was an error while loading. Please reload this page.
For my particular case it works on macOS but not on Ubuntu.
pnpm version: 1.10.2
Additional information:
node -v
prints: 8.1.2BTW: Is there an easier way to check which module it was?
The text was updated successfully, but these errors were encountered: