-
-
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
Installation fails when trying to install as a dependency with global libvips on macOS #4187
Comments
The The output you provided of running
Please ensure you've added all of the additional dependencies required for building from source as detailed at https://sharp.pixelplumbing.com/install#building-from-source |
Hi, thanks for the reply. The output of the "complete error message" section is the one where I've installed
For the |
Please can you provide the output of |
It would seem like without the env it worked 🎉 thank you So if I want to set the env, I would need to wait for the next release where the change that fixes it comes out, understood.
|
Hello,
On macOS, when installing as a dependency with global libvips, it fails. However, if I clone this repo and run
npm install
thennpm run install
, it builds successfully.I've also tried creating a clean macOS VM, only installing Xcode cli tools, homebrew, vips, node, and then try to install it in a empty directory with the
SHARP_FORCE_GLOBAL_LIBVIPS
environment variable. However, it still fails.I'd appreciate any help, thank you 🙏
Logs when running
npm run install
in this repoPossible install-time or require-time problem
You must confirm both of these before continuing.
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.
Are you using a supported runtime?
^18.17.0 || ^20.3.0 || >=21.0.0
If you cannot confirm any of these,
please upgrade to the latest version
and try again before opening an issue.
Are you using a supported package manager and installing optional dependencies?
--include=optional
--no-optional=false
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?
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
?The text was updated successfully, but these errors were encountered: