Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: spawn cmd ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)

C:\repo\dem1>npm start

@ start C:\repo\dem1 expo start

Starting project at C:\repo\dem1

Expo DevTools is running at http://localhost:19002 Opening DevTools in the browser... (press shift-d to disable) Error: spawn cmd ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)

at onErrorNT (internal/child_process.js:415:16)

at process._tickCallback (internal/process/next_tick.js:63:19)

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ start: expo start npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ start script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

like image 967
santosh Rijal Avatar asked Feb 27 '26 07:02

santosh Rijal


1 Answers

checked system variables one more time and found the cause of the problem: missing C:\Windows\System32\ variable. I added it and that solved my problem

Hope, it help you too.

like image 87
Daiene Avatar answered Mar 01 '26 21:03

Daiene



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!