Create-react-app: `create-react-app` create project error

Created on 30 Aug 2019  ยท  5Comments  ยท  Source: facebook/create-react-app

Describe the bug

โ˜  react  create-react-app todo

Creating a new React app in /Users/kozo4/cat/study/react/todo.

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

yarn add v1.15.2
info No lockfile found.
[1/4] ๐Ÿ”  Resolving packages...
info There appears to be trouble with your network connection. Retrying...
warning react-scripts > postcss-preset-env > postcss-color-gray > postcss-values-parser > [email protected]: I wrote this module a very long time ago; you should use something else.
warning react-scripts > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > [email protected]: use String.prototype.padStart()
error Couldn't find package "[email protected]" required by "react-scripts" on the "npm" registry.
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/kozo4/cat/study/react/todo has failed.

Deleting generated file... package.json
Deleting todo/ from /Users/kozo4/cat/study/react
Done.

I ran the command but couldn't generate the project :(

All 5 comments

EDIT: I upgraded node and now it works!

I have a different error:

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

yarn add v1.17.3
info No lockfile found.
[1/4] ๐Ÿ”  Resolving packages...
warning react-scripts > postcss-preset-env > postcss-color-functional-notation > postcss-values-parser > [email protected]: I wrote this module a very long time ago; you should use something else.
warning react-scripts > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > [email protected]: use String.prototype.padStart()
[2/4] ๐Ÿšš  Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version "^8.10.0 || ^10.13.0 || >=11.10.1". Got "11.0.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

EDIT: I upgraded node and now it works!
...
[2/4] ๐Ÿšš Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version "^8.10.0 || ^10.13.0 || >=11.10.1". Got "11.0.0"
error Found incompatible module.

eslint is not compatible with your current node version which is 11.0.0, you need one of these: ^8.10.0 or ^10.13.0 or (11.10.1 and above!)

Hm, probably something with your network connection? To be clear, the command that's really failing is simply yarn add react react-dom react-scripts, so probably nothing we can do on our end.

@heyimalex I don't think so!, based on the error message it complains about the node version!

@iHmD You're right RE: the second person, but I was responding to the issue creator.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

oltsa picture oltsa  ยท  3Comments

Aranir picture Aranir  ยท  3Comments

fson picture fson  ยท  3Comments

DaveLindberg picture DaveLindberg  ยท  3Comments

ap13p picture ap13p  ยท  3Comments