Problem running Ionic offline with NodeJs 8.9.4

  • Node.js 8.9.4 (x64)
  • Windows 10:
  • Ionic CLI 3.19.1:

Hi guys, am having problem running my ionic app offline using the: ionic serve or the ionic serve --lab. The app runs the first time but when a file changes instead of reloading/rebuilding the app I got this.

Here is the error am getting:


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

Error: spawn "C:\Program Files\nodejs\node.exe" ENOENT
    at notFoundError (C:\Users\Learn\AppData\Roaming\npm\node_modules\ionic\node_modules\cross-spawn\lib\enoent.js:11:11)
    at verifyENOENT (C:\Users\Learn\AppData\Roaming\npm\node_modules\ionic\node_modules\cross-spawn\lib\enoent.js:46:16)
    at ChildProcess.cp.emit (C:\Users\Learn\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)

Please help me with this I really need to be able to run and test my app offline

I’m not sure it’s possible. I remember some highly technical discussions on Github about this, but I don’t know what the resolution was. You might need to look at Github issues about app-scripts.

Thanks for reply Aaron.
I’ve already checked but the solutions are not working for me.