Create-react-app: Error when trying to create a new react app

Created on 3 Oct 2018  路  5Comments  路  Source: facebook/create-react-app

i have tried creating a new react app with create-react-app and with npx and i get the same error which is

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

yarn add v1.0.2
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
error [email protected]: 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 F:\Dev\frontend has failed.

Deleting generated file... package.json
Deleting frontend/ from F:\Development_programming\School_Projects
Done.

low (ignored issue template)

Most helpful comment

update your node.js to the version "^6.14.0 || ^8.10.0 || >=9.10.0".

All 5 comments

Please fill out the issue template.

update your node.js to the version "^6.14.0 || ^8.10.0 || >=9.10.0".

@hzeng1998 , that worked for me

Had the same issue. Updated node using the pkg from nodes.org instead of npm and it cleared the error.

@hzeng1998 thanks updated my node version to version 10.00 and it worked fine with no errors thanks

Was this page helpful?
0 / 5 - 0 ratings