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.

npx create-react-app fails

See original GitHub issue

Describe the bug

Command npx create-react-app my-app fails to complete

Environment

Environment Info:

  current version of create-react-app: 5.0.1
  running from C:\Users\------\AppData\Local\npm-cache\_npx\c67e74de0542c87c\node_modules\create-react-app

  System:
    OS: Windows 10 10.0.22000
    CPU: (12) x64 AMD Ryzen 5 2600X Six-Core Processor
  Binaries:
    Node: 16.15.1 - C:\Program Files\nodejs\node.EXE
    Yarn: Not Found
    npm: 8.13.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: Not Found
    Edge: Spartan (44.22000.120.0), Chromium (102.0.1245.41)
    Internet Explorer: 11.0.22000.120
  npmPackages:
    react: Not Found
    react-dom: Not Found
    react-scripts: Not Found
  npmGlobalPackages:
    create-react-app: Not Found

Steps to reproduce

  1. Run npx create-react-app my-app

Expected behavior

A React app is created in a folder called my-app

Actual behavior

npm error about a package not being in the registry image

2022-06-30T19_41_18_042Z-debug-0.log

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:25
  • Comments:33

github_iconTop GitHub Comments

12reactions
jakehewittcommented, Jun 30, 2022

v4 still works. npx create-react-app --scripts-version 4.0.3

7reactions
florianbepunktcommented, Jun 30, 2022

Seems to be a failed package publish…if someone needs an urgent workaround, then pin the dep in package.json

// yarn
"resolutions": {
    "@types/eslint": "8.4.3"
  }

// npm
"overrides": {
    "@types/eslint": "8.4.3"
  }
Read more comments on GitHub >

github_iconTop Results From Across the Web

I can't install react using npx create-react-app? - Stack Overflow
I can't install react using npx create-react-app? · 14. try npm cache clean --force then run npm install -g create-react-app@latest · it was...
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 >
npx create-react-app error - DEV Community ‍ ‍
npx create-react-app error · Solution 1. try to uninstall and reinstall it first. · Solution 2. If you run this in an older...
Read more >
create-react-app: command not found (React) error [Solved]
Use `npx` to solve the error create-react-app: command not found, e.g. `npx create-react-app my-app` or install the package globally by running `npm install ......
Read more >
What To Do if create-react-app Doesn't Work
If, after all of the above, you are unable to run npx create-react-app my-app , then it might be an issue with Node...
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