Events.js:165 throw er; // Unhandled 'error' event


I try to setup a new App:

- npm install -g ionic
- ionic start myApp sidemenu
- ionic serve

Works but after 50 sec show in chrome => crash:

[13:15:02] lint finished in 3.53 s
throw er; // Unhandled ‘error’ event

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

ionic info --verbose

[DEBUG] Reason for not using local CLI: LOCAL_CLI_NOT_FOUND
[DEBUG] CLI flags: { interactive: true, confirm: false }
[DEBUG] { cwd: ‘C:\Repos\myApp’, local: false, binPath:
‘C:\Users\user\AppData\Roaming\npm\node_modules\ionic\bin\ionic’, libPath:
‘C:\Users\user\AppData\Roaming\npm\node_modules\ionic\dist\index.js’ }
[DEBUG] New daemon pid: 9292

cli packages: (C:\Users\user\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 8.0.0

local packages:

@ionic/app-scripts : 3.1.9
Cordova Platforms  : none
Ionic Framework    : ionic-angular 3.9.2


Android SDK Tools : 26.1.1
Node              : v9.11.1
npm               : 5.8.0
OS                : Windows 10

Environment Variables:

ANDROID_HOME : C:\Users\user\AppData\Local\Android\Sdk


backend : pro

Thanks for Help

1 Like

I’ve got the same error. Any clues how to resolve it?

Even i got the same error. Actually i have never done any changes . Can’t even able to run the app
Any solution will be needful