Development server running and end without any errors


#1

Hey,

Yesterday everything was working fine, today on question “Do you want to update CLI to 3.17” I thought, why not… . Then I create new folder and made “ionic start mySideMenu sidemenu” everything done without any problems. But when I run “ionic serve” build starts, build end, dev server running and that’s all browser not running localhost:8100 not working. Solution start and end immediately.

C:\Users\Lukasz\Documents\Visual Studio 2017\Projects\mySideMenu>ionic serve
Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser -
Ctrl+C to cancel
[19:45:36]  watch started ...
[19:45:36]  build dev started ...
[19:45:36]  clean started ...
[19:45:36]  clean finished in 7 ms
[19:45:36]  copy started ...
[19:45:36]  deeplinks started ...
[19:45:36]  deeplinks finished in 47 ms
[19:45:36]  transpile started ...
[19:45:39]  transpile finished in 3.60 s
[19:45:39]  preprocess started ...
[19:45:39]  preprocess finished in less than 1 ms
[19:45:39]  webpack started ...
[19:45:40]  copy finished in 3.89 s
[19:45:50]  webpack finished in 10.78 s
[19:45:50]  sass started ...
[19:45:52]  sass finished in 1.63 s
[19:45:52]  postprocess started ...
[19:45:52]  postprocess finished in 14 ms
[19:45:52]  lint started ...
[19:45:52]  build dev finished in 16.25 s
[19:45:52]  watch ready in 16.43 s
[19:45:52]  dev server running: http://localhost:8100/

[OK] Development server running!
     Local: http://localhost:8100
     External: http://10.0.75.1:8100, http://172.19.64.1:8100, http://192.168.2.101:8100
     DevApp: mySideMenu@8100 on Lukasz-Komputer


C:\Users\Lukasz\Documents\Visual Studio 2017\Projects\mySideMenu>

Any idea why?


#2

Did you ran npm install?


#3

Yes, also restart computer, reinstall iconic, downgrade to 3.16 and nothing :frowning:


#4

Try to delete www and node_modules folders, then run npm install and ionic serve.


#5

Done and nothing changed.

EDIT:
Something strange… some of the path in envoirment variable was missing after adding %SystemRoot% etc. now working… :face_with_raised_eyebrow:


#6

This same thing happened to me! Very bizarre. My path variables for npm were also all screwed up out of nowhere. Still don’t have any solution. This occurred after linking the project to my pro account and updated the CLI.


#7

It sounds like we had similar errors. I was working in a project just fine updated the cli, pushed some code to github, ran my project in an emulator etc… An few hours later I came back and everything was completely screwed up, nothing that I did from the command line was working. Ionic, Git, npm, I couldn’t even run ipconfig. I couldn’t figure it out so I ended up doing a system restore from a saved point yesterday and that ended up bringing everything back to normal.


#8

It could be true that after linking the project to pro account something bad was happens. I think i did similar thinks, but I can not be in 100% sure because few days ago I install OpenSSH in Windows and this installer clean up my path in environment variables.


#9

Hi,

It sounds your port is being used by the other process. Please try to run the command line below. It will automatically look for the available port for you to run the application

ionic serve --all

Thanks,