Everthing was working fine untill i press shift-d after that its showing this error cant find any thing related to this devtool issues
Opening DevTools in the browser… (press shift-d to disable)
Error: spawn cmd ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
i tried updating expo to its latest version but nothing works is there any way to disable dev tools this just stuck badly
In your home directory you should have a directory called .expo. Within that is a file called state.json.
Make sure expo is not running. Edit this file and change the value of the openDevToolsAtStartup key.
OK, then try renaming your .expo directory in your home directory to e.g. .expo.bak and remove the .expo directory in your app’s root directory and see if that helps.
That is unlikely to fix the underlying ENOENT issue, but should reset the devtools startup setting.
still the same error did the both changes doesnt work
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:264:19)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
I think the devtools startup is a red herring. The openDevToolsAtStartup setting should be in the state.json file in the .expo directory in your home directory, but I’m not sure when exactly it’s written. Also, you should not need to edit that file manually.
Has expo start or npm start ever worked without that “Error: spawn cmd ENOENT” error on your machine?
yes offcourse it used to work absolutely perfect untill i press shift-d
actually i used to open dev tool manually by coping the port number from cmd and pasting int onto the browser
to open devtool automatically i pressed shift-d then all this happened and it just stuck here
OK. The problem is that debugging this by proxy is really difficult. I have no idea why you would be getting that ENOENT error. It basically means “file not found”, and the “spawn cmd” part of it means it’s trying to run something. But I don’t know what it’s trying to run, exactly and I don’t see why pressing Shift-d would have caused this to happen.
This is just a guess. I don’t know if it will help. But maybe try editing your %HOMEDRIVE%%HOMEPATH%\.expo\state.json file to add in: