Error mongodb@5.1.0: The engine "node" is incompatible with this module. Expected version ">=14.20.1". Got "14.17.0"

i am keep getting this error
error mongodb@5.1.0: The engine “node” is incompatible with this module. Expected version “>=14.20.1”. Got “14.17.0”

but my system node version is 16.14.2

Can anyone tell me how to solve this problem

4 Likes

This helped me. I just added the node version to my package.json.

7 Likes

Thank you so much.
I was stuck on this problem for a couple of days.
adding another environment variable named NODE_VERSION = “16.14.2” solved the problem.

I’m very grateful for your help

1 Like

Worked for me. This info was handy.

Awesome, fixed the issue!

Where should you put this code? In what kind of language?

Go to package.json file and at the end add ```
“engines”: {
“node”: “>=14 <15”
}

guys please help me !! i used these all way to resolve the error
but still I’m getting this error " Expected version “^3.0.0”. Got “20.2.0"”

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.