-
-
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
0.33.2: pnpm: Error: Could not load the "sharp" module using the linux-x64 runtime #4012
Comments
I cannot reproduce this with pnpm locally. Does the Do you see this problem if you don't use Volta? (I note https://docs.volta.sh/advanced/pnpm says "Support for pnpm is currently experimental.") If you're still having problems, please provide a Dockerfile (or similar) to create an environment that allows someone else to reproduce. |
This comment was marked as off-topic.
This comment was marked as off-topic.
OK I think I've figured out what's going on. I couldn't reproduce this in Docker either. On my dev system (Debian Bullseye) I tried running the
I think this perhaps was causing the install to fail so For some reason |
When I install via
pnpm
I cannot importsharp@^0.33.2
. However,sharp@0.32.6
loads as expected.Possible install-time or require-time problem
Require time. Test script:
package.json
:Are you using the latest version of sharp?
sharp
as reported bynpm view sharp dist-tags.latest
.Are you using a supported runtime?
^18.17.0 || ^20.3.0 || >=21.0.0
Are you using a supported package manager and installing optional dependencies?
--no-optional=false
What is the complete error message, including the full stack trace?
What is the complete output of running
npm install --verbose --foreground-scripts sharp
in an empty directory?When I install
sharp
vianpm
it imports as expected.What is the output of running
npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp
?The text was updated successfully, but these errors were encountered: