I’m trying to deploy strapi to Render but I’m getting this deployment error? Any ideas?
Something went wrong installing the "sharp" module
Cannot find module '../build/Release/sharp-linux-x64.node'
Require stack:
- /opt/render/project/src/ghostedd-cms/node_modules/@strapi/upload/node_modules/sharp/lib/sharp.js
- /opt/render/project/src/ghostedd-cms/node_modules/@strapi/upload/node_modules/sharp/lib/constructor.js
- /opt/render/project/src/ghostedd-cms/node_modules/@strapi/upload/node_modules/sharp/lib/index.js
- /opt/render/project/src/ghostedd-cms/node_modules/@strapi/upload/dist/_chunks/index-BDq2waDf.js
- /opt/render/project/src/ghostedd-cms/node_modules/@strapi/upload/dist/server/index.js
- /opt/render/project/src/ghostedd-cms/node_modules/@strapi/utils/dist/index.js
- /opt/render/project/src/ghostedd-cms/node_modules/@strapi/cloud-cli/dist/index.js
- /opt/render/project/src/ghostedd-cms/node_modules/@strapi/strapi/dist/cli/commands/index.js
- /opt/render/project/src/ghostedd-cms/node_modules/@strapi/strapi/dist/cli/index.js
- /opt/render/project/src/ghostedd-cms/node_modules/@strapi/strapi/bin/strapi.js
Possible solutions:
- Install with verbose logging and look for errors: "npm install --ignore-scripts=false --foreground-scripts --verbose sharp"
- Install for the current linux-x64 runtime: "npm install --platform=linux --arch=x64 sharp"
- Consult the installation documentation: https://sharp.pixelplumbing.com/install
at loadJsFile (/opt/render/project/src/ghostedd-cms/node_modules/@strapi/core/dist/utils/load-config-file.js:18:13)
at Module.loadConfigFile (/opt/render/project/src/ghostedd-cms/node_modules/@strapi/core/dist/utils/load-config-file.js:37:14)
at loadPlugins (/opt/render/project/src/ghostedd-cms/node_modules/@strapi/core/dist/loaders/plugins/index.js:118:41)
at async Promise.all (index 3)
at async Module.loadApplicationContext (/opt/render/project/src/ghostedd-cms/node_modules/@strapi/core/dist/loaders/index.js:12:3)
at async Object.register (/opt/render/project/src/ghostedd-cms/node_modules/@strapi/core/dist/providers/registries.js:26:5)
at async Strapi.register (/opt/render/project/src/ghostedd-cms/node_modules/@strapi/core/dist/Strapi.js:326:7)
at async Strapi.load (/opt/render/project/src/ghostedd-cms/node_modules/@strapi/core/dist/Strapi.js:318:5)
at async Strapi.start (/opt/render/project/src/ghostedd-cms/node_modules/@strapi/core/dist/Strapi.js:209:9)
[2024-11-24 04:18:45.132] info: Shutting down Strapi