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 running error

See original GitHub issue

Is this a bug report?

yes

Did you try recovering your dependencies?

(Write your answer here.)

Which terms did you search for in User Guide?

(Write your answer here if relevant.)

Environment

  1. node -v: v8.10.0

  2. npm -v: from cmd: “CALL “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” prefix -g” non è riconosciuto come comando interno o esterno, un programma eseguibile o un file batch. 5.6.0 npm -v from git bash: 5.7.1

  3. yarn --version (if you use Yarn):

  4. npm ls react-scripts (if you haven’t ejected): no output we are starting from scratch.

Then, specify:

  1. Operating system: Microsoft Windows [Versione 10.0.16299.248]
  2. Browser and version (if relevant): no relevant

Steps to Reproduce

(Write your steps here:) from cmd

  1. C:\Users\olindo>npm install -g create-react-app “CALL “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” prefix -g” non è riconosciuto come comando interno o esterno, un programma eseguibile o un file batch. C:\Users\olindo\AppData\Roaming\npm\create-react-app -> C:\Users\olindo\AppData\Roaming\npm\node_modules\create-react-app\index.js
  • create-react-app@1.5.2 updated 1 package in 3.689s
  1. C:\Users\olindo>create-react-app my-app2

Creating a new React app in C:\Users\olindo\my-app2.

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

events.js:183 throw er; // Unhandled ‘error’ event ^

Error: spawn C:\WINDOWS\system32\cmd.exe; ENOENT at _errnoException (util.js:1022:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19) at onErrorNT (internal/child_process.js:372:16) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) at Function.Module.runMain (module.js:695:11) at startup (bootstrap_node.js:188:16) at bootstrap_node.js:609:3

with Git Bash

  1. $ npm install -g create-react-app C:\Users\olindo\AppData\Roaming\npm\create-react-app -> C:\Users\olindo\AppData\Roaming\npm\node_modules\create-react-app\index.js create-react-app@1.5.2 updated 1 package in 3.284s

  2. create-react-app my-app2

Creating a new React app in C:\Users\olindo.js\my-app2.

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

events.js:183 throw er; // Unhandled ‘error’ event ^

Error: spawn C:\WINDOWS\system32\cmd.exe; ENOENT at _errnoException (util.js:1022:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19) at onErrorNT (internal/child_process.js:372:16) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) at Function.Module.runMain (module.js:695:11) at startup (bootstrap_node.js:188:16) at bootstrap_node.js:609:3

Expected Behavior

the creation of my-app2 directory instrumented with all the software.

Actual Behavior

Only my-app2 and package.json was created no other files (Write what happened. Please add screenshots!) C:\Users\olindo\my-app2>dir Il volume nell’unità C è Windows Numero di serie del volume: 848B-7A22

Directory di C:\Users\olindo\my-app2

19/03/2018 12:53 <DIR> . 19/03/2018 12:53 <DIR> … 19/03/2018 12:53 64 package.json

Reproducible Demo

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
pindarolicommented, Apr 27, 2018

Fixex in System Variable there was ComSpec variable to %SystemRoot%\system32\cmd.exe; I removed “;” and all works now! Thanks to all

1reaction
bondzcommented, Mar 19, 2018

@pindaroli try npx create-react-app myapp

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 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 is not working · Issue #10132 - GitHub
First, you'll need to uninstall "create-react-app" using the "npm uninstall -g create-react-app" command. Run "npx create-react-app my-app" each ...
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 >
Troubleshooting - Create React App
Check that your file is imported by your entrypoint. TypeScript will show errors on any of your source files, but webpack only reloads...
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