Hi!
I have a strapi project that i want to deploy it on render. But i have this error thrown while trying to deploy it.
Sep 12 11:00:25 PM error Found incompatible module.
Sep 12 11:00:25 PM info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Sep 12 11:00:25 PM yarn install v1.22.5
Sep 12 11:00:25 PM yarn run v1.22.5
Sep 12 11:00:25 PM $ strapi build
Sep 12 11:00:25 PM /bin/sh: 1: strapi: not found
Sep 12 11:00:25 PM error Command failed with exit code 127.
Sep 12 11:00:25 PM info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Sep 12 11:00:25 PM [1/5] Validating package.json...
Sep 12 11:00:25 PM [2/5] Resolving packages...
Sep 12 11:00:25 PM ==> Build failed 😞
Can you please hepl me ?
Okay, sorry, but I changed from yarn
to npm
, and that error is gone.
But now I have a new error which is;
Error: Knex: run
Sep 12 11:27:28 PM $ npm install pg --save
Sep 12 11:27:28 PM Cannot find module 'pg'
Sep 12 11:27:28 PM Require stack:
Sep 12 11:27:28 PM - /opt/render/project/src/node_modules/knex/lib/dialects/postgres/index.js
Sep 12 11:27:28 PM - /opt/render/project/src/node_modules/knex/lib/dialects/index.js
Sep 12 11:27:28 PM - /opt/render/project/src/node_modules/knex/lib/knex-builder/internal/config-resolver.js
Sep 12 11:27:28 PM - /opt/render/project/src/node_modules/knex/lib/knex-builder/Knex.js
Sep 12 11:27:28 PM - /opt/render/project/src/node_modules/knex/lib/index.js
Sep 12 11:27:28 PM - /opt/render/project/src/node_modules/knex/knex.js
Sep 12 11:27:28 PM - /opt/render/project/src/node_modules/@strapi/database/lib/connection.js
Sep 12 11:27:28 PM - /opt/render/project/src/node_modules/@strapi/database/lib/index.js
Sep 12 11:27:28 PM - /opt/render/project/src/node_modules/@strapi/strapi/lib/Strapi.js
Sep 12 11:27:28 PM - /opt/render/project/src/node_modules/@strapi/strapi/lib/index.js
Sep 12 11:27:28 PM - /opt/render/project/src/node_modules/@strapi/strapi/lib/commands/utils/data-transfer.js
Sep 12 11:27:28 PM - /opt/render/project/src/node_modules/@strapi/strapi/lib/commands/actions/export/command.js
Sep 12 11:27:28 PM - /opt/render/project/src/node_modules/@strapi/strapi/lib/commands/index.js
Sep 12 11:27:28 PM - /opt/render/project/src/node_modules/@strapi/strapi/bin/strapi.js
Sep 12 11:27:28 PM at Client_PG.initializeDriver (/opt/render/project/src/node_modules/knex/lib/client.js:202:13)
Sep 12 11:27:28 PM at new Client (/opt/render/project/src/node_modules/knex/lib/client.js:83:12)
Sep 12 11:27:28 PM at new Client_PG (/opt/render/project/src/node_modules/knex/lib/dialects/postgres/index.js:21:5)
Sep 12 11:27:28 PM at knex (/opt/render/project/src/node_modules/knex/lib/knex-builder/Knex.js:16:28)
Sep 12 11:27:28 PM at createConnection (/opt/render/project/src/node_modules/@strapi/database/lib/connection.js:55:24)
Sep 12 11:27:28 PM at new Database (/opt/render/project/src/node_modules/@strapi/database/lib/index.js:34:23)
Sep 12 11:27:28 PM at Database.init (/opt/render/project/src/node_modules/@strapi/database/lib/index.js:121:14)
Sep 12 11:27:28 PM at Strapi.bootstrap (/opt/render/project/src/node_modules/@strapi/strapi/lib/Strapi.js:433:30)
Sep 12 11:27:28 PM at Strapi.load (/opt/render/project/src/node_modules/@strapi/strapi/lib/Strapi.js:504:16)
Sep 12 11:27:28 PM at async Strapi.start (/opt/render/project/src/node_modules/@strapi/strapi/lib/Strapi.js:224:9)
Specify pg
as a dependency in your package.json
, do not use npm install [package-name]
directly.
system
Closed
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.