Localhost:8100 keeps running and not close port 8100 even when i restart my computer

what happened to me is this:

when i began the tutorial that appears in the documentation, i followed all the stebs one by one, i created my first app as the documentation said, i did the command ionic serve , no problem on this point, the app works fine on the port 8100, cool :D.
Then i decided to create another project, withs command line
ionic start MyProject super
because i wanted to see all the functionalities; Then i wrote the same comand to serve ionic serve the CLI told me that it is serve in localhost:8100, just as the before project, the i went to open it on the browser and when i did it, the before project was ther, i refresh the page because it was on ths same port than the new project, i though doing this it’d show me the new project that i’ve already create, but it not happens; So i thought, well, maybe i have to close the other server that were opens with the first project, i’ve read some that said that could work if i use the combination CTRL + C or the q one on the CLI, i did it, with q command and nothig happened, actually the CLI saids it is a not recognized command, so i proved with CTRL + C the CLI ask me if i wish to finish the work, so i put y so i thought it was solve, i went to the browser and it keeps running the first project i did for the tutorial, so i decided to restar my computer, i thought with this all the servers i did with ionic will close. I did it and with with just open the browser and go to localhost:8100 the server of the first project created to follow the tutorial, keeps running even when i restar my computer and when i just open my browser to search it, i did not open my CLI, nothing

actually i’ve proved with a lot of modalities to creating projects like
ionic start MyProject super
ionic start MyProject tabs
and always i did the command ionic serve happened the same thing
I proved that comand ionic serve -p 8101 to open it with othet port, and it works with other port if i use the module Blank, but with Super doesn’t work with any port, with super if i made it with port 8100 it still open the tutorial project, but i’ve i proved with other port this appears in CLI and browser

`[INFO] Starting app-scripts server: --p 8102 --port 8102 --livereload-port 35729 --r 35729 --address - Ctrl+C to
[10:26:10] watch started …
[10:26:10] build dev started …
[10:26:10] clean started …
[10:26:10] clean finished in 5 ms
[10:26:10] copy started …
[10:26:10] transpile started …
[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/app/app.component.ts, line: 23
Cannot find module ‘@ngx-translate/core’.

  L23:  import { TranslateService } from '@ngx-translate/core'

[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/app/app.module.ts, line: 29
Cannot find module ‘@ionic-native/camera’.

  L29:  import { Camera } from '@ionic-native/camera';
  L30:  import { GoogleMaps } from '@ionic-native/google-maps';

[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/app/app.module.ts, line: 30
Cannot find module ‘@ionic-native/google-maps’.

  L29:  import { Camera } from '@ionic-native/camera';
  L30:  import { GoogleMaps } from '@ionic-native/google-maps';
  L31:  import { SplashScreen } from '@ionic-native/splash-screen';

[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/app/app.module.ts, line: 34
Cannot find module ‘@ngx-translate/core’.

  L34:  import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
  L35:  import { TranslateHttpLoader } from '@ngx-translate/http-loader';

[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/app/app.module.ts, line: 35
Cannot find module ‘@ngx-translate/http-loader’.

  L34:  import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
  L35:  import { TranslateHttpLoader } from '@ngx-translate/http-loader';

[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/pages/item-create/item-create.ts, line: 5
Cannot find module ‘@ionic-native/camera’.

   L5:  import { Camera } from '@ionic-native/camera';

[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/pages/login/login.ts, line: 8
Cannot find module ‘@ngx-translate/core’.

   L8:  import { TranslateService } from '@ngx-translate/core';

[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/pages/map/map.ts, line: 4
Cannot find module ‘@ionic-native/google-maps’.

   L4:  import { GoogleMaps, GoogleMap, GoogleMapsEvent, LatLng, CameraPosition } from '@ionic-native/google-maps';

[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/pages/settings/settings.ts, line: 7
Cannot find module ‘@ngx-translate/core’.

   L7:  import { TranslateService } from '@ngx-translate/core';

[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/pages/signup/signup.ts, line: 7
Cannot find module ‘@ngx-translate/core’.

   L7:  import { TranslateService } from '@ngx-translate/core';

[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/pages/tabs/tabs.ts, line: 3
Cannot find module ‘@ngx-translate/core’.

  L2:  import { NavController } from 'ionic-angular';
   L3:  import { TranslateService } from '@ngx-translate/core';

[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/pages/tutorial/tutorial.ts, line: 6
Cannot find module ‘@ngx-translate/core’.

   L6:  import { TranslateService } from '@ngx-translate/core';

[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/providers/user.ts, line: 38
Property ‘share’ does not exist on type ‘Observable’.

  L37:    login(accountInfo: any) {
  L38:      let seq = this.api.post('login', accountInfo).share();

[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/providers/user.ts, line: 60
Property ‘share’ does not exist on type ‘Observable’.

  L59:    signup(accountInfo: any) {
  L60:      let seq = this.api.post('signup', accountInfo).share();

[10:26:20] dev server running: http://localhost:8102/

[INFO] Development server running
Local: http://localhost:8102

[10:26:21] copy finished in 11.12 s
[10:26:21] watch ready in 11.65 s`


-no matters with kind of project i opened on port 8100 it will always appears the tutorial project

  • the projects works fine in other ports, except for the Super mode

how may i close properly a server conection to could use the port in other projects?

here’s my ionic info

global packages:

@ionic/cli-utils : 1.4.0
Ionic CLI        : 3.4.0

local packages:

@ionic/app-scripts              : 1.3.12
@ionic/cli-plugin-ionic-angular : 1.3.1
Ionic Framework                 : ionic-angular 3.5.0


Node       : v8.1.3
OS         : Windows 10
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed
npm        : 5.0.3

Server still running after a restart of Windows is kind of impossible…

Can you try opening localhost:8100 with another browser?

i know it’s hard to believe that’s why i even resart it, to fixs it LOL, but it doesn’t work, and in other browsewrs is the same, but this just happen with the por 8100

How are you restarting your computer?

Create a shortcut to C:\Windows\System32\shutdown.exe /s /t 0 to do a real shutdown. Then turn it on again.

Clear your browser cache and cookies. It happened to me…

To avoid it I turned off my service worker in the index.html

-if i use CTRL + C in other ports it works, that means the connection is close and the url localhost:xxx don’t work, that is what should happend with the port 8100, i will do a restart as @Sujan12 saids, and i’ll tell you how it wors

Apparently it is solve.
what i’ve do:
restart my computer as @Sujan12 said creating a shotcut, and it works, but then i made ionic serve again on port 8100 and works fine the problem was when i did with other app, again block in that por even when i did CTRL + C, so i restart the pc normally again ant the problem keeps, the solution of @Sujan12works, but i can’t restart with shortcut each time i work in other app, it is useles, i mean i can chage the port with other project/app, but again it is useless; So the problems persist, then i uninstall node.js and then i clean my browser cache and cookies as @trevaun23 saids now it, woks, now if i close one server a star another app in the same port localhost:8100 it’s works.

thanks the community and Mod for the answer

1 Like