facebook / create-react-app

Set up a modern web app by running one command.
https://create-react-app.dev
MIT License
102.71k stars 26.84k forks source link

The engine "node" is incompatible with this module. #5287

Closed aimenbatool closed 6 years ago

aimenbatool commented 6 years ago

I'm trying to create a project using create-react-app & here is my console output.

yarn create v1.5.1
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "create-react-app@2.0.3" with binaries:
      - create-react-app
[################################################################] 64/64
Creating a new React app in /home/aimen/codes/reactProjects/my-app.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...

yarn add v1.5.1
[1/4] Resolving packages...
[2/4] Fetching packages...
error eslint@5.6.0: The engine "node" is incompatible with this module. Expected version "^6.14.0 || ^8.10.0 || >=9.10.0".
error An unexpected error occurred: "Found incompatible module".
info If you think this is a bug, please open a bug report with the information provided in "/home/aimen/codes/reactProjects/my-app/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Aborting installation.
  yarnpkg add --exact react react-dom react-scripts --cwd /home/aimen/codes/reactProjects/my-app has failed.

Deleting generated file... package.json
Deleting generated file... yarn.lock
Done.
error An unexpected error occurred: "Command failed.
Exit code: 1
Command: /home/aimen/.yarn/bin/create-react-app
Arguments: my-app
Directory: /home/aimen/codes/reactProjects
Output:
".
info If you think this is a bug, please open a bug report with the information provided in "/home/aimen/.config/yarn/global/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.

I have updated my NodeJS and NPM to latest versions. Tried every mentioned solution over the internet but unable to fix it. Is this something related to cerate-react-app?

node -v v9.6.1

npm -v 6.4.1

Timer commented 6 years ago

You posted that your Node version is v9.6.1:

node -v v9.6.1

The error is telling you it expects >=9.10.0. Please make sure you're upgrading correctly.