strapi-community / strapi-tool-dockerize

Easy add support for docker to your strapi project
MIT License
504 stars 34 forks source link

Error: During deockerizing #121

Open olgierdfrontrunners opened 1 week ago

olgierdfrontrunners commented 1 week ago

🐛 Bug Report

🤷‍♀️ What did you do

I'ts a long story how I stuck with incompatible version, project is working.

⛔️ Error log

Command failed with exit code 1: yarn add mysql error @strapi/plugin-graphql@4.25.1: The engine "node" is incompatible with this module. Expected version ">=18.0.0 <=20.x.x". Got "16.15.1" error Found incompatible module. yarn add v1.22.22 [1/5] Validating package.json... [2/5] Resolving packages... [3/5] Fetching packages... info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

🕵️‍♀️ Stack trace

Error: Command failed with exit code 1: yarn add mysql
error @strapi/plugin-graphql@4.25.1: The engine "node" is incompatible with this module. Expected version ">=18.0.0 <=20.x.x". Got "16.15.1"
error Found incompatible module.
yarn add v1.22.22
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
    at makeError (C:\Users\OlgierdFrontrunnersM\AppData\Local\npm-cache\_npx\a642ee8303c0fc2f\node_modules\execa\lib\error.js:60:11)
    at handlePromise (C:\Users\OlgierdFrontrunnersM\AppData\Local\npm-cache\_npx\a642ee8303c0fc2f\node_modules\execa\index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async installDependecies (C:\Users\OlgierdFrontrunnersM\AppData\Local\npm-cache\_npx\a642ee8303c0fc2f\node_modules\@strapi-community\dockerize\core\dependencies.js:21:3)
    at async C:\Users\OlgierdFrontrunnersM\AppData\Local\npm-cache\_npx\a642ee8303c0fc2f\node_modules\@strapi-community\dockerize\index.js:63:4

🙇‍♀️ Expected behavior/code

A clear and concise description of what you expected to happen (or code).

👩‍💻 Environment

💡 Possible Solution

Well, I've checked if your script run if I'll chahge the node version with nvm use 20.15.0, already installed, and dockerizing end with succes, so maybe changind version will help in cases like my :). Sorry i'am just newbie with node, strapi etc.

📺 Additional context/Screenshots

Eventyret commented 1 week ago

Seems you need to update your node to min 18 as you are using 16