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

2 Likes

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

3 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.