Dev server gets closed after 2-3 minutes

Hi

Whenever i do ionic serve, it opens the the app but after coulple of minutes it exits throwing this error

can anyone help?

events.js:183
throw er; // Unhandled ‘error’ event
^

Error: spawn “C:\Program Files\nodejs\node.exe” ENOENT
at notFoundError (C:\Users\test\AppData\Roaming\npm\node_modules\ionic\node_modules\cross-spawn\lib\enoent.js:11:11)
at verifyENOENT (C:\Users\test\AppData\Roaming\npm\node_modules\ionic\node_modules\cross-spawn\lib\enoent.js:46:16)
at ChildProcess.cp.emit (C:\Users\test\AppData\Roaming\npm\node_modules\ionic\node_modules\cross-spawn\lib\enoent.js:33:19)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)

Did you find a solution?

Did you follow Unhandled 'error' event when typing any comand (ionic serve) ?

P.S.: duplicate Aide de ionic server

I don’t know what to do