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.

can't create new react app

See original GitHub issue

Describe the bug

(PS C:\Users..\OneDrive\Skrivbord\fre> npx create-react-app ecom

Creating` a new React app in C:\Users..\OneDrive\Skrivbord\fre\ecom.

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

Aborting installation. Unexpected error. Please report it as a bug: Error: spawn UNKNOWN at ChildProcess.spawn (node:internal/child_process:412:11) at Object.spawn (node:child_process:698:9) at spawn (C:\Users\baraa\AppData\Local\npm-cache_npx\c67e74de0542c87c\node_modules\cross-spawn\index.js:12:24) at C:\Users\baraa\AppData\Local\npm-cache_npx\c67e74de0542c87c\node_modules\create-react-app\createReactApp.js:390:19 at new Promise (<anonymous>) at install (C:\Users\baraa\AppData\Local\npm-cache_npx\c67e74de0542c87c\node_modules\create-react-app\createReactApp.js:341:10) at C:\Users\baraa\AppData\Local\npm-cache_npx\c67e74de0542c87c\node_modules\create-react-app\createReactApp.js:468:16 at processTicksAndRejections (node:internal/process/task_queues:96:5) { errno: -4094, code: ‘UNKNOWN’, syscall: ‘spawn’ }

Deleting generated file… package.json Deleting ecom/ from C:\Users\baraa\OneDrive\Skrivbord\fre Done. PS C:\Users\baraa\OneDrive\Skrivbord\fre> .)

Did you try recovering your dependencies?

(

  1. npm install -g create-react-app
  2. npm cache clean --force
  3. npm install npm@latest

)

Which terms did you search for in User Guide?

(Write your answer here if relevant.)

Environment

(Environment Info:

current version of create-react-app: 5.0.0 running from C:\Users\baraa\AppData\Local\npm-cache_npx\c67e74de0542c87c\node_modules\create-react-app

System: OS: Windows 10 10.0.22000 CPU: (8) x64 Intel® Core™ i7-1065G7 CPU @ 1.30GHz Binaries: Node: 16.13.1 npm: 8.3.0

npmPackages: react: Not Found react-dom: Not Found react-scripts: Not Found npmGlobalPackages: create-react-app: Not Found.)

Steps to reproduce

(Write your steps here:)

Expected behavior

(Write what you thought would happen.)

Actual behavior

(Screenshot (5))

Reproducible demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

3reactions
AnthonyLzqcommented, Jan 13, 2022

I got this strange message when running:

$ npx create-react-app my-app
    
Need to install the following packages:
  create-react-app
Ok to proceed? (y) y

You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0).

We no longer support global installation of Create React App.

Please remove any global installs with one of the following commands:
- npm uninstall -g create-react-app
- yarn global remove create-react-app

The latest instructions for creating a new app can be found here:
https://create-react-app.dev/docs/getting-started/

System:

  • OS: Manjaro Linux x86_64 - 5.15.12-1-MANJARO
  • CPU: AMD Ryzen 7 5800H with Radeon Graphics (16) @ 3.200GHz

Binaries:

  • Node: 16.13.1
  • npm: 8.3.0
0reactions
patotomacommented, Apr 23, 2022
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 >
Create React App cannot create new applications: No longer ...
When I try to create a new React application this morning, I got a message saying that I can't create a new React...
Read more >
npx create-react-app is not working · Issue #10132 - GitHub
You are running create-react-app 4.0.0, which is behind the latest release (4.0.1). We no longer support global installation of Create React App ......
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 >
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 >

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