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

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". #5714

Closed
bruceleong opened this issue Nov 5, 2018 · 3 comments

Comments

@bruceleong
Copy link

Is this a bug report?

(write your answer here)

When running - 'create-react-app' - I get the following error

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
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Aborting installation.
yarnpkg add --exact react react-dom react-scripts --...has failed.

Deleting generated file... package.json
Deleting generated file... yarn.lock
Done.

Did you try recovering your dependencies?

Yes

(Write your answer here.)

Which terms did you search for in User Guide?

(Write your answer here if relevant.)

Environment

(paste the output of the command here)

Steps to Reproduce

(Write your steps here:)

Expected Behavior

(Write what you thought would happen.)

Actual Behavior

(Write what happened. Please add screenshots!)

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

@bugzpodder
Copy link

Which node version are you using? can you run node --version and make sure it is ^6.14.0 || ^8.10.0 || >=9.10.0?

@HarryAdney
Copy link

Install nvm if it isn't already.
nvm ls to get the version you're using. The default version is shown
nvm use 8.10.0 to change it - just replace 8.10.0 with whichever version you want to use.

Restart your command line for changes to take effect

If you want to always default to the latest version:
nvm alias default node

@hantailala
Copy link

update node ^6.14.0 || ^8.10.0 || >=9.10.0

@lock lock bot locked and limited conversation to collaborators Jan 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants