Strapi Sharp installation error on render

==> Running build command ‘npm install -force; npm run build’…

Nov 8 03:58:05 PMnpm ERR! code 1

Nov 8 03:58:05 PMnpm ERR! path /opt/render/project/src/node_modules/@strapi/plugin-upload/node_modules/sharp

Nov 8 03:58:05 PMnpm ERR! command failed

Nov 8 03:58:05 PMnpm ERR! command sh -c (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)

Nov 8 03:58:05 PMnpm ERR! sharp: Detected globally-installed libvips v8.15.3

Nov 8 03:58:05 PMnpm ERR! sharp: Building from source via node-gyp

Nov 8 03:58:05 PMnpm ERR! gyp info it worked if it ends with ok

Nov 8 03:58:05 PMnpm ERR! gyp info using node-gyp@3.8.0

Nov 8 03:58:05 PMnpm ERR! gyp info using node@18.17.0 | linux | x64

Nov 8 03:58:05 PMnpm ERR! gyp ERR! configure error

Nov 8 03:58:05 PMnpm ERR! gyp ERR! stack Error: Command failed: /home/render/envwrappers/python -c import sys; print “%s.%s.%s” % sys.version_info[:3];

Nov 8 03:58:05 PMnpm ERR! gyp ERR! stack File “”, line 1

Nov 8 03:58:05 PMnpm ERR! gyp ERR! stack import sys; print “%s.%s.%s” % sys.version_info[:3];

Nov 8 03:58:05 PMnpm ERR! gyp ERR! stack ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Nov 8 03:58:05 PMnpm ERR! gyp ERR! stack SyntaxError: Missing parentheses in call to ‘print’. Did you mean print(…)?

Nov 8 03:58:05 PMnpm ERR! gyp ERR! stack

Nov 8 03:58:05 PMnpm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:419:12)

Nov 8 03:58:05 PMnpm ERR! gyp ERR! stack at ChildProcess.emit (node:events:514:28)

Nov 8 03:58:05 PMnpm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1091:16)

Nov 8 03:58:05 PMnpm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:302:5)

Nov 8 03:58:05 PMnpm ERR! gyp ERR! System Linux 6.8.0-1018-aws

Nov 8 03:58:05 PMnpm ERR! gyp ERR! command “/opt/render/project/nodes/node-18.17.0/bin/node” “/opt/render/project/src/node_modules/.bin/node-gyp” “rebuild”

Nov 8 03:58:05 PMnpm ERR! gyp ERR! cwd /opt/render/project/src/node_modules/@strapi/plugin-upload/node_modules/sharp

Nov 8 03:58:05 PMnpm ERR! gyp ERR! node -v v18.17.0

Nov 8 03:58:05 PMnpm ERR! gyp ERR! node-gyp -v v3.8.0

Nov 8 03:58:05 PMnpm ERR! gyp ERR! not ok

Nov 8 03:58:05 PM

Nov 8 03:58:05 PM

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.