Closed xhl592576605 closed 1 month ago
There's a lot going on here. Quick guess would be that if you're using pnpm
then you need to ensure you've read the electron-builder
documentation relating to this e.g. https://www.electron.build/index.html#note-for-pnpm
If you still require help, please provide a complete repo with minimal dependencies that allows someone else to reproduce.
I also encountered the same problem
@xhl592576605 Were you able to make any progress with this? If you still require help, please provide a complete repo with minimal dependencies that allows someone else to reproduce.
Closing due to inactivity but please feel free to reopen with the requested details if further help is required.
electron: 22.3.6, use pnpm
Possible 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
?