create-react-app running error
See original GitHub issueIs 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
-
node -v
: v8.10.0 -
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.0npm -v
from git bash: 5.7.1 -
yarn --version
(if you use Yarn): -
npm ls react-scripts
(if you haven’t ejected): no output we are starting from scratch.
Then, specify:
- Operating system: Microsoft Windows [Versione 10.0.16299.248]
- Browser and version (if relevant): no relevant
Steps to Reproduce
(Write your steps here:) from cmd
- 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
- 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
-
$ 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
-
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:
- Created 6 years ago
- Comments:14 (5 by maintainers)
Top GitHub Comments
Fixex in System Variable there was ComSpec variable to %SystemRoot%\system32\cmd.exe; I removed “;” and all works now! Thanks to all
@pindaroli try
npx create-react-app myapp