I am facing this error ionic 2 cli…
events.js:182
throw er; // Unhandled 'error' event
^
Error: spawn C:\Program Files\nodejs\node.exe ENOENT
at notFoundError (E:\Documents\Projects\MyApp\node_modules\
at verifyENOENT (E:\Documents\Projects\MyApp\node_modules\c
at ChildProcess.cp.emit (E:\Documents\Projects\MyApp\node_m
at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
Not found any solution using google till now.
You also didn’t search here in the forum:
on ionic serve, it prompted me if I wanted the CLI to automatically check for updates in the background.
Then it came with the error as below:
[擷取aaaa]
It breaks the CLI and I cannot do ionic serve since then.
ionic info had same error output.
ionic info --verbose:
D:\MyCloud\git\cow-v2>ionic info --verbose
[DEBUG] CLI flags: { interactive: true, confirm: false }
[DEBUG] { cwd: 'D:\\MyCloud\\git\\cow-v2', local: true, binPath:
'C:\\Users\\Adrian\\AppData\\Roaming\\npm\\node_modules…
Here is an issue for that:
opened 03:14PM - 28 Jul 17 UTC
closed 11:08PM - 02 Aug 17 UTC
bug
Soimething seems to have gone wrong with CLI 3.6 on Windows:
https://forum.io… nicframework.com/t/error-like-shown-below-when-running-ionic-serve-command-in-cmd-prompt/99944
https://forum.ionicframework.com/t/ionic-cli-error-after-update/99986
```
D:\MyCloud\git\cow-v2>ionic info --verbose
[DEBUG] CLI flags: { interactive: true, confirm: false }
[DEBUG] { cwd: 'D:\\MyCloud\\git\\cow-v2', local: true, binPath:
'C:\\Users\\Adrian\\AppData\\Roaming\\npm\\node_modules\\ionic\\bin\\ionic', libPath:
'D:\\MyCloud\\git\\cow-v2\\node_modules\\ionic\\dist\\index.js' }
[DEBUG] Loading local plugin @ionic/cli-plugin-proxy
[DEBUG] Throwing PLUGIN_NOT_INSTALLED for local @ionic/cli-plugin-proxy
[DEBUG] Loading local plugin @ionic/cli-plugin-ionic-angular
[DEBUG] Getting plugin info for ionic
[DEBUG] Checking for latest plugin version of ionic@latest.
[DEBUG] Getting plugin info for @ionic/cli-plugin-ionic-angular
[DEBUG] Checking for latest plugin version of @ionic/cli-plugin-ionic-angular@latest.
[DEBUG] New daemon pid: 39216
events.js:160
throw er; // Unhandled 'error' event
^
Error: spawn C:\Program Files\nodejs\node.exe ENOENT
at notFoundError (D:\MyCloud\git\cow-v2\node_modules\cross-spawn\lib\enoent.js:11:11)
at verifyENOENT (D:\MyCloud\git\cow-v2\node_modules\cross-spawn\lib\enoent.js:46:16)
at ChildProcess.cp.emit (D:\MyCloud\git\cow-v2\node_modules\cross-spawn\lib\enoent.js:33:19)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
```
https://forum.ionicframework.com/t/error-after-update-to-ionic-3-6/99967
```
[WARN] You are not in an Ionic project directory. Project context may be missing.
cli packages:
@ionic/cli-utils : 1.6.0 (C:\Users\HP\AppData\Roaming\npm\node_modules\ionic\node_modules\@ionic\cli-utils)
ionic (Ionic CLI) : 3.6.0 (C:\Users\HP\AppData\Roaming\npm\node_modules\ionic)
System:
Node : v8.1.2
OS : Windows 10
npm : 5.0.3
```
Add your information (old ionic info
?) to the issue to help the dev.
1 Like
I have solved this. I accidentally deleted cross-spawn-sync node modules. Now works fine.
1 Like
Thank you sooo much. I’m also getting the same error. Till now it worked properly. I don’t know suddenly what happened to this project. Please help me out of this…If you find answer…
1 Like
When I uninstalled node,ionic and relative plugins and all…then reinstalled everything. Then it worked well for me
2 Likes