โ 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 :(
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.