Skip to content
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

Open
fencesitter1 opened this issue Jan 25, 2024 · 4 comments
Open

When install payload,There is always a problem about sharp. #25

fencesitter1 opened this issue Jan 25, 2024 · 4 comments

Comments

@fencesitter1
Copy link

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

@dikaio
Copy link

dikaio commented Jan 30, 2024

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.

@fencesitter1
Copy link
Author

thank for your reply. I tried the way you put forward,but it didn't work.I already give up to learn this project.

@JarvisChan666
Copy link

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!

@FinzyPHINZY
Copy link

hello @JarvisChan666 @fencesitter1
i faced this problem too. you need to restart the project using the pnpm. that's the only way payload works.

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants