-
-
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
Sharp not being installed { code: 0, signal: null } #3965
Comments
Please can you provide answers to the following questions from the issue template that were ignored/deleted:
|
Hi @lovell Sorry here they are: What is the complete output of running npm install --verbose --foreground-scripts sharp in an empty directory?
What is the output of running npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp?
|
Thanks for the extra information, not quite sure what's happening here. The |
Looking at this again, it appears to have installed correctly. I think the |
When I look in the sharp folder, it doesnt contain a build folder as 0.32.6 did. This is the content:
|
Nvm I found at that the build resides in the @img now... Copying that over and everything works again :) |
Please see #3750 for context.
You shouldn't need to copy anything to make it work, your package manager will install everything in the right place, unless perhaps you have some kind of extra manual build process that is selectively copying packages? |
Forgot to mention that im using Next.js :( Found this issue #3877 explaining the need to add it to outputFileTracingIncludes to make it work. My mistake for not finding the already answered issue, my apologies :) |
The latest Next.js 14.1.0 contains a couple of recent bug fixes relating to standalone builds that should allow you to remove any custom copying logic. |
Thanks for the heads up @lovell I will look into that. And again thanks for your much needed support :) |
Possible install-time or require-time problem
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?
--include=optional
If you cannot confirm any of these, please upgrade to the latest version of your chosen package manager
and ensure you are allowing the installation of optional or multi-platform dependencies before opening an issue.
What is the complete error message, including the full stack trace?
After upgrading to sharp 0.33.2 it is not being installed anymore when using NPM using Docker
The only error I'm getting is:
Everything worked fine in 0.32.6
The text was updated successfully, but these errors were encountered: