strapi-tool-dockerize icon indicating copy to clipboard operation
strapi-tool-dockerize copied to clipboard

Error: During deockerizing

Open olgierdfrontrunners opened this issue 1 year ago • 1 comments

🐛 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/[email protected]: 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/[email protected]: 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

  • 📦 Node version: v16.15.1
  • 💻 OS: win32 x64

💡 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

olgierdfrontrunners avatar Jun 27 '24 09:06 olgierdfrontrunners

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

Eventyret avatar Jun 27 '24 09:06 Eventyret