-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to Create a New React App Using npx create-react-app #13776
Comments
Could you please attach the log files as well? That would be very helpful. Thank you! |
try this command "npx create-react-app@latest react-18-20-5" |
@Nithesh0812 This also didn't work. @lakpahana Here are the files: |
Same issues are found in TypeScript template.
|
Still reproducible with node 23.5.0 (via nvm, OS: Windows 11) as well:
|
This is an unmaintained project (see: reactjs/react.dev#5487). |
create-react-app does not create a working react app for me either in Ubuntu 24.04
|
Here's what resolves it:
I gotta say I'd prefer if this 'hello world' program didn't track and report users' behaviour with web-vitals. Someone using this is trying out react, not signing up to report anybody's activity. |
@tabax I found no official documentation supporting your words on the official create-react-app repository, and official react documentation. Even the official reaction.dev documentation is for |
@itsRkator There are a bunch of solutions available out there for this issue. React is coming with major v19 but peers are expecting react to be in v18 and hence the issues. After the error comes up
after this |
This is indeed all very confusing. |
I've been using this for years in educational examples but now it's time to move on. So people, stop wasting your precious time with this unmaintained project. This error has been reported for weeks already. At least give a chance to other projects like Vite, which work, are maintained, and have amazing documentation and community support. Here is what you need to get started:
It's almost the same setup that this tool creates, with the only minor disadvantage that you need to set up tests afterward. But this can also be solved in just 2-3 minutes by following a tutorial. |
For now, I found a temporary solution to fix this issue. Use CRA's default command and then |
I had Resolve the issue..I had overcome this issue, i had used many ways and technique but i doesn't work. "npm create vite@latest my-app -- --template react I'm hopping that this would works f fine. If yes please to forgot to tell me or please follow me for more.... |
Description
I've been facing issues when creating a new React app using the
npx create-react-app
command for the past 1 1.5 months. Despite trying multiple solutions, the problem persists, making it impossible to set up a new React project.Steps to Reproduce
npx create-react-app my-app
.--force
--legacy-peer-deps
Expected Behavior
After running the
npx create-react-app
command, a new React app should be successfully created.Actual Behavior
The command fails to complete successfully. I've attached screenshots of the errors encountered below for you to look over.
Attempts to Fix
--force
and--legacy-peer-deps
flags.Environment
npx create-react-app
version is the default fetched by NPM.Attachments
(Screenshots of the error messages)
Additional Information
This issue has persisted across multiple environments and configurations for over a month. Please let me know if further details or debugging information are needed to assist in resolving this issue.
The text was updated successfully, but these errors were encountered: