I can't start metro bundler

When iI run expo start this is what i get

Error: spawn powershell ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:268:19)
at onErrorNT (internal/child_process.js:468:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21)

When i run expo diagnostics
Command failed: wmic os get Caption
‘wmic’ is not recognized as an internal or external command,
operable program or batch file.

Error: Command failed: wmic os get Caption
‘wmic’ is not recognized as an internal or external command,
operable program or batch file.

at b (C:\Users\cmpic\AppData\Roaming\npm\node_modules\expo-cli\node_modules\envinfo\dist\envinfo.js:1:91824)
at Function.e.exports.sync (C:\Users\cmpic\AppData\Roaming\npm\node_modules\expo-cli\node_modules\envinfo\dist\envinfo.js:1:93687)
at e.exports (C:\Users\cmpic\AppData\Roaming\npm\node_modules\expo-cli\node_modules\envinfo\dist\envinfo.js:1:90041)
at e.exports (C:\Users\cmpic\AppData\Roaming\npm\node_modules\expo-cli\node_modules\envinfo\dist\envinfo.js:1:89188)
at C:\Users\cmpic\AppData\Roaming\npm\node_modules\expo-cli\node_modules\envinfo\dist\envinfo.js:1:88218
at async Promise.all (index 0)
at action (C:\Users\cmpic\AppData\Roaming\npm\node_modules\expo-cli\src\commands

\diagnostics.ts:8:16)
at Command. (C:\Users\cmpic\AppData\Roaming\npm\node_modules\expo-cli\src\exp.ts:79:7)

after struggling for one day I found a working solution ,from @wodin via this link https://forums.expo.io/t/expo-start-is-running-my-project/32369/10?u=cloudmonde

1 Like

@wodin is a hero around these parts. Glad you got things figured out and good luck with your project moving forward!

2 Likes

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.