Reputation: 43
This appears:
Creating a new React app in C:\Program Files\nodejs\my-app
.
'npm' is not recognized as an internal or external command, operable program or batch file.
Installing packages. This might take a couple of minutes. Installing react, react-dom, and react-scripts...
'npm' is not recognized as an internal or external command, operable program or batch file. events.js:174 throw er; // Unhandled 'error' event ^
Error: spawn npm ENOENT at notFoundError (C:\Users\russu\AppData\Roaming\npm-cache_npx\9700\node_modules\create-react-app\node_modules\cross-spawn\lib\enoent.js:11:11) at verifyENOENT (C:\Users\russu\AppData\Roaming\npm-cache_npx\9700\node_modules\create-react-app\node_modules\cross-spawn\lib\enoent.js:46:16) at ChildProcess.cp.emit (C:\Users\russu\AppData\Roaming\npm-cache_npx\9700\node_modules\create-react-app\node_modules\cross-spawn\lib\enoent.js:33:19) at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12) Emitted 'error' event at: at ChildProcess.cp.emit (C:\Users\russu\AppData\Roaming\npm-cache_npx\9700\node_modules\create-react-app\node_modules\cross-spawn\lib\enoent.js:36:37) at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
PS: i have node.js, i have a path variable i have everything installed, why its not working while using create-react-app and npm its nort recognized, idu!!!!
Upvotes: 0
Views: 880
Reputation: 61
I have faced similar issue, and this works for me.
npm start
Upvotes: 0
Reputation: 649
Did you reload your PC? Here some steps which should be done to make it work:
Upvotes: 0