-
Notifications
You must be signed in to change notification settings - Fork 746
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
When install payload,There is always a problem about sharp. #25
Comments
Hi @fencesitter1. I'm not on Windows, but it looks like the trouble you're receiving is from a dependent package, libvips. You need to make sure those binaries are available to compile sharp. Here's a guide that should walk you through the process and get you up and running. |
thank for your reply. I tried the way you put forward,but it didn't work.I already give up to learn this project. |
I face this problem too, it took me so much time to solve it, but it still didn't work, so sad! |
hello @JarvisChan666 @fencesitter1 how did i find out? i wanted to create an issue on the payload repository and in the contributing.md i found the disclaimer that rhe project would only work with pnpm and it would fail with npm and yarn. you can also check it out on the payload repo. it's an information that should be available on the readme... |
The following is a specific error message:
npm ERR! code 1
npm ERR! path E:\sites\digitalhippo2\node_modules\payload\node_modules\sharp
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild &&
node install/dll-copy)
npm ERR! sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.14.5/libvips-8.14.5-win32-x64.tar.br
npm ERR! sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
npm ERR! sharp: Installation error: connect ETIMEDOUT 20.205.243.166:443
npm ERR! A complete log of this run can be found in: C:\Users\admin\AppData\Local\npm-cache_logs\2024-01-25T12_45_05_689Z-debug-0.log
I took a lot of time for this and wanted to give up
The text was updated successfully, but these errors were encountered: