# Error with Ionic serve without internet

**URL:** <https://forum.ionicframework.com/t/error-with-ionic-serve-without-internet/122055>\
**Category:** ionic-v3\
**Created:** [February 20, 2018, 1:10pm UTC](https://forum.ionicframework.com/t/error-with-ionic-serve-without-internet/122055 "2018-02-20T13:10:22Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![JAR19](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jar19/32/113216_2.png) [@JAR19](https://forum.ionicframework.com/u/JAR19)\
**Post date:** [February 20, 2018, 1:10pm UTC](https://forum.ionicframework.com/t/error-with-ionic-serve-without-internet/122055/1 "2018-02-20T13:10:22Z")

</div>

Normally I use the command line **ionic serve** with no problems but today my internet connection was down and ionic serve reported the following :

> events.js:183  
> throw er; // Unhandled ‘error’ event  
> ^
> 
> Error: spawn “C:\Program Files\nodejs\node.exe” ENOENT  
> at notFoundError (C:\Users\John\AppData\Roaming\npm\node\_modules\ionic\node\_modules\cross-spawn\lib\enoent.js:11:11)  
> at verifyENOENT (C:\Users\John\AppData\Roaming\npm\node\_modules\ionic\node\_modules\cross-spawn\lib\enoent.js:46:16)  
> at ChildProcess.cp.emit (C:\Users\John\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)

When the internet came back on - no problem.

---

<div class="post-metadata">

**Author:** ![reedrichards](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@reedrichards](https://forum.ionicframework.com/u/reedrichards)\
**Post date:** [February 20, 2018, 1:47pm UTC](https://forum.ionicframework.com/t/error-with-ionic-serve-without-internet/122055/2 "2018-02-20T13:47:43Z")

</div>

No internet or no network at all?

In case of no network at all, maybe you faced that error because of DevApp? No Wifi, no network, no way of spreading the app across the network…

---

<div class="post-metadata">

**Author:** ![JAR19](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jar19/32/113216_2.png) [@JAR19](https://forum.ionicframework.com/u/JAR19)\
**Post date:** [February 20, 2018, 1:51pm UTC](https://forum.ionicframework.com/t/error-with-ionic-serve-without-internet/122055/3 "2018-02-20T13:51:19Z")

</div>

> [@reedrichards](#):
>
> No internet

The network was OK (home system) just no internet.

---

<div class="post-metadata">

**Author:** ![reedrichards](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@reedrichards](https://forum.ionicframework.com/u/reedrichards)\
**Post date:** [February 20, 2018, 2:10pm UTC](https://forum.ionicframework.com/t/error-with-ionic-serve-without-internet/122055/4 "2018-02-20T14:10:01Z")

</div>

Oki doki, no idea then

I also had this error in december ([https://github.com/ionic-team/ionic-app-scripts/issues/1345](https://github.com/ionic-team/ionic-app-scripts/issues/1345)) but not the same problem, I guess this stacktrace is like the overall try/catch displayed error when something not expected happens

---

<div class="post-metadata">

**Author:** ![JAR19](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jar19/32/113216_2.png) [@JAR19](https://forum.ionicframework.com/u/JAR19)\
**Post date:** [February 20, 2018, 2:19pm UTC](https://forum.ionicframework.com/t/error-with-ionic-serve-without-internet/122055/5 "2018-02-20T14:19:41Z")

</div>

> [@reedrichards](#):
>
> Oki doki, no idea then

If I disconnect the Ethernet cable then Ionic serve terminates after [OK] Development server running! message.

---

<div class="post-metadata">

**Author:** ![reedrichards](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@reedrichards](https://forum.ionicframework.com/u/reedrichards)\
**Post date:** [February 20, 2018, 2:33pm UTC](https://forum.ionicframework.com/t/error-with-ionic-serve-without-internet/122055/6 "2018-02-20T14:33:43Z")

</div>

In that case, no cable, no network, no devapp deployment 😉

When you do the same test but run `ionic serve --local` (no sure i think that’s maybe the argument) do you face the same error?

---

<div class="post-metadata">

**Author:** ![JAR19](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jar19/32/113216_2.png) [@JAR19](https://forum.ionicframework.com/u/JAR19)\
**Post date:** [February 20, 2018, 2:39pm UTC](https://forum.ionicframework.com/t/error-with-ionic-serve-without-internet/122055/7 "2018-02-20T14:39:37Z")

</div>

> [@reedrichards](#):
>
> run ionic serve --local

Same affect - without internet ionic serve stops working.

---

<div class="post-metadata">

**Author:** ![reedrichards](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@reedrichards](https://forum.ionicframework.com/u/reedrichards)\
**Post date:** [February 20, 2018, 2:45pm UTC](https://forum.ionicframework.com/t/error-with-ionic-serve-without-internet/122055/8 "2018-02-20T14:45:09Z")

</div>

Weird, according doc ([Error with Ionic serve without internet](https://forum.ionicframework.com/t/error-with-ionic-serve-without-internet/122055/7)) `--local` should `Disable external network usage`

Would you like to try, just to make me happy 😉 , `ionic serve --no-devapp`

After that I will have definitly no more idea about that 😄

---

<div class="post-metadata">

**Author:** ![JAR19](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jar19/32/113216_2.png) [@JAR19](https://forum.ionicframework.com/u/JAR19)\
**Post date:** [February 20, 2018, 3:07pm UTC](https://forum.ionicframework.com/t/error-with-ionic-serve-without-internet/122055/9 "2018-02-20T15:07:25Z")

</div>

> [@reedrichards](#):
>
> ionic serve --no-devapp

Sorry still does not work - only different is that it reports the error with the enoent.js file.

The laptop still works without the internet - so guess I can live without it!

---

<div class="post-metadata">

**Author:** ![reedrichards](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@reedrichards](https://forum.ionicframework.com/u/reedrichards)\
**Post date:** [February 20, 2018, 3:14pm UTC](https://forum.ionicframework.com/t/error-with-ionic-serve-without-internet/122055/10 "2018-02-20T15:14:05Z")

</div>

or maybe someone way more clever gonna find the solution, sorry that it didn’t worked out

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:50pm UTC](https://forum.ionicframework.com/t/error-with-ionic-serve-without-internet/122055/11 "2021-07-19T21:50:04Z")

</div>

Closed on July 19, 2021, 9:50pm UTC


