create-react-app: eslint@5.6.0: The engine "node" is incompatible with this module. Expected version "^6.14.0 || ^8.10.0 || >=9.10.0"
Is this a bug report?
yes
Environment
Environment: OS: macOS High Sierra 10.13.4 Node: 8.9.4 Yarn: 1.3.2 npm: 6.4.1 Watchman: 4.9.0 Xcode: Xcode 9.2 Build version 9C40b Android Studio: Not Found
Steps to Reproduce
type npx create-react-app test
Expected Behavior
it creates by react app
Actual Behavior
crashes. produces the following output:
Creating a new React app in /Users/jd/sandbox/test.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
yarn add v1.3.2
info No lockfile found.
[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 Found incompatible module
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 /Users/jd/sandbox/test has failed.
Deleting generated file... package.json
Deleting test / from /Users/jd/sandbox
Done.
Reproducible Demo
type it in your command line
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 28
- Comments: 21
Can you guys upgrade your node version to ^6.14.0 || ^8.10.0 || >=9.10.0?
This worked for me :
create-react-app react-app --use-npmSuccessfully working after updating to latest version of
nodenvm install nodeNow using node v10.12.0 (npm v6.4.1)My previous version of node was
8.14.0and8.9.12where I was facing this issue.I had to do this to update npm:
npm install npm@latest -gAnd I installed node 8.12.0 and it works again.
See what versions of node you currently have
nvm lsIf you donβt have an appropriate version (per the error), install it firstnvm install 8Now use itnvm use 8Updating node to the latest version (v8.12.0) worked, thanks @bugzpodder !
I recommend everyone to stick with node 8.12 LTS unless you have a reason to use a different version.
I checked the versions of npm, yarn and node
updated package.json with this versions and worked for me