Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug?]: The engine "node" is incompatible with this module #9276

Closed
1 task
BenCherif opened this issue Oct 6, 2023 · 3 comments
Closed
1 task

[Bug?]: The engine "node" is incompatible with this module #9276

BenCherif opened this issue Oct 6, 2023 · 3 comments
Labels
bug/needs-info More information is needed for reproduction

Comments

@BenCherif
Copy link

What's not working?

i'm using your Dockerfile.dev to run the app :
strapi version : 4.14.3
and i got this error:
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=12.x.x <=16.x.x". Got "18.18.0"

when i change this line FROM node:18-alpine to FROM node:16-alpine it works with nodejs 16

How do we reproduce the bug?

No response

What's your environment? (If it applies)

No response

Are you interested in working on this?

  • I'm interested in working on this
@BenCherif BenCherif added the bug/needs-info More information is needed for reproduction label Oct 6, 2023
@Josh-Walker-GM
Copy link
Collaborator

Hey @BenCherif 👋

Do you know why this particular version [email protected] is appearing? Perhaps yarn why could help determine this? We do occasionally get these types of issues where peculiar version of dependencies produce similar problems. I don't know an exact solution but wiping out the yarn.lock and node_modules and performing yarn install again would be my first suggestion.

It would be good if we could get to the bottom of this for you because we don't really support node 16 anymore and so moving you back up to node 18 would be best. There could be other incompatibility issues you start to face if you have your project on node 16 going forward.

@BenCherif
Copy link
Author

Bro thanks for your reply it was my mistake,i just need to increase node version in my package.json file .
Kind regards

@Josh-Walker-GM
Copy link
Collaborator

Thanks! I'll close this for just now then but if you run into this again feel free to reopen and we can discuss again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/needs-info More information is needed for reproduction
Projects
None yet
Development

No branches or pull requests

2 participants