-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Installing sharp-libvips
on Linux Fails with Integrity Check Error
#3133
Comments
Hm, interesting... as quickly as the error appeared, it is gone again! I cleared the cache of the system and started a new deploy -- twice! -- and on the second run, it installed without problems. Wonder if it was a temporary problem (or even temporary breach) at GitHub... Anyway, seems to be working again. Closing this! |
Sounds like a temporary problem between your CI environment and GitHub, hopefully not a breach of either, but the integrity check exists to guard against this kind of problem so it worked as intended. https://sharp.pixelplumbing.com/install#prebuilt-binaries
|
Interesting, just failed again now, different SHA512... 🤔 Anyway, clearing cache and retrying. I know there's not much that the
|
I guess it's possible that the integrity error could be smothering another error? Perhaps the check should be wrapped in a Lines 71 to 73 in e8720c9
What version of Node.js are you using? There was a fix in 16 that is somewhat related - nodejs/node#34314 |
Ah interesting, yeah Node.js Another system with Thanks for the tip! |
Hm... another error after the upgrade to
|
how to get more logs on sharp? does this happen on node 20 and node 22 ? |
This is no longer relevant as of sharp v0.33.0+. |
Possible install-time or require-time problem
When installing
[email protected]
as normal on CI (Render.com), there is an integrity check error withlibvips-8.12.2-linux-x64.tar.br
(downloaded from GitHub). This has been working as normal for multiple deploys in the last week (with no version changes tosharp
or anything else related in the Yarn lockfile).An integrity check error seems weird - could this be something related to a compromise in GitHub? Just thinking about the numerous hacking attempts that have been going on lately...
npm install
is the same as the architecture and platform of Node.js used at runtime.Are you using the latest version of sharp?
sharp
as reported bynpm view sharp dist-tags.latest
.If you cannot confirm this, please upgrade to the latest version and try again before opening an issue.
If you are using another package which depends on a version of
sharp
that is not the latest, please open an issue against that package instead.Is this a problem with filesystem permissions?
If you are using npm v6 or earlier and installing as a
root
orsudo
user, have you tried with thenpm install --unsafe-perm
flag?Not applicable
If you are using npm v7 or later, does the user running
npm install
own the directory it is run in?Not applicable
If you are using the
ignore-scripts
feature ofnpm
, have you tried with thenpm install --ignore-scripts=false
flag?Not applicable
What is the complete output of running
npm install --verbose sharp
?I've added the output of the Yarn installation command that fails the integrity check
What is the output of running
npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp
?The text was updated successfully, but these errors were encountered: