Skip to main content
All CollectionsFAQsFixing a bug
I'm getting a node engine error
I'm getting a node engine error
Alon Carmel avatar
Written by Alon Carmel
Updated over 2 years ago

If you are getting this error:

[1/5] Validating package.json... error [email protected]: The engine "node" is incompatible with this module. Expected version "^16". Got "17.4.0" error Found incompatible module. info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

This basically means that the expected node version in the project isn't the same as the one on your machine.

Please use the following instructions to fix it.

  • In the frontend folder, locate the package.json file and confirm the node version of the project.

    "engines": {
    "node": "^16"
    },
  • Confirm if the Node version is the same as that on your machine by running the following command in your terminal

    node -v

If it's not the same, please follow the instruction below to use the appropriate node version.

Installing a Node Version Manager

  • Make sure to use the correct instructions for your Operating system

  • NVM (Node Version Manager) allows you to switch between several node versions easily

  • When you Install it, confirm it’s on your machine by running: nvm -v

  • Run nvm install v16 or nvm install <your preferred version>

  • Then run nvm use v16 or nvm use <your preferred version>

  • Delete your node modules folder in the frontend directory

    rm -rf node_modules
  • Then run yarn install in your frontend folder to install your node modules with version 16.

  • Initiate the command again.

Never Stop Developing!

Did this answer your question?