Error yarn build on Debian 12

Hello, I am a new developer on radicle.

I’m trying to build my project on my Debian 12 server.

However, I encounter an error on the “shrap” module:

“Could not load the “sharp” module using the linux-x64 runtime”.
Possible solutions:

I’ve already tested the following commands, but they don’t work.

Do you have any idea how to solve this problem?

For information, here is the command “npx envinfo --binaries --system”.

System :
OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
CPU: (32) x64 AMD EPYC 7313 16-Core Processor
Memory: 57.07 GB / 62.75 GB
Container: Yes
Shell: 5.2.15 - /bin/bash
Binaries :
Node: 20.5.1 - /usr/bin/node
Yarn: 1.22.21 - /usr/bin/yarn
npm: 9.8.0 - /usr/bin/npm

I just had the same issue (sharp package), I used these commands and it worked afterwards:
npm install --include=optional sharp && npm install --os=linux --cpu=x64 sharp
Using node 20.x.

Have you purged the node_modules/ directory before installing, this helps sometimes?

1 Like

Hi Strarsis,

Thanks for your help.

Unfortunately, this doesn’t work.

I’ve tried purging the node_modules/ folder but I keep getting the error.

However, I’ve deleted my git repository and put my project back on the server.
The build is now working. I don’t know why :smiley:

Best regards.

1 Like

FYI, bud-imagemin (which is causing your error) was removed from Radicle in v1.3.0

https://github.com/roots/radicle/pull/122

1 Like