Facing error on installation of Strapi . " Something went wrong installing the "sharp" module"

On Alpine with Node 18 and python3.11, the issue is the dependency on sharp 0.32.0, which depends on prebuild ^11.0.4 which in turns depends on node-gyp ^6.0.1 which is incompatible with newer versions of python.

Sharp 0.32.6 brings prebuild ^12.0.0 and node-gyp ^9.4.0 solving the issue.

Downgrading to python3.10 (Alpine 3.18 → 3.17) did it for me.

On other environments it might be useful as well to drop down to python3.10.

1 Like