question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`create-react-app` create project error

See original GitHub issue

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 > flatten@1.0.2: 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 > left-pad@1.3.0: use String.prototype.padStart()
error Couldn't find package "babel-loader@8.0.6" 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 😦

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
heyimalexcommented, Sep 9, 2019

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

1reaction
iHmDcommented, Aug 31, 2019

EDIT: I upgraded node and now it works! … [2/4] 🚚 Fetching packages… error eslint@6.2.2: 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!)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create React App not working - Stack Overflow
1. update the npm version (npm install npm@latest -g) · 2. clear the cache (npm cache clean --force) · 3. create the react...
Read more >
npx create-react-app is not working · Issue #10132 - GitHub
I am able to solve the problem by first trying to uninstall the npm globally, update the npm, clear the cache then using...
Read more >
npx create-react-app not working? Here's the solution.
The current solution is simple — run create-react-app and target the latest version. Run creact-react-app using the latest version. npx create- ...
Read more >
What To Do if create-react-app Doesn't Work
Another rather simple remedy for the create-react-app blues. You can try simply reinstalling the latest version of npm. To check what version of ......
Read more >
How to Build a React Project with Create React App in 10 Steps
Node installed on your computer. You can download Node at nodejs.org. Create React App requires a Node version of at least 10. A...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found