These are chat archives for angular/angular-2-ionic-2

Jan 2017
Lorens Olivares
Jan 29 2017 18:17
Hi Everyone, I have a problem when doing a npm start

$ npm start

angular-quickstart@0.0.0 start C:\Users\Lorens85\Desktop\Projects\applicatie
ng serve

Port 4200 is already in use.

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\Lorens85\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "start"
npm ERR! node v6.9.1
npm ERR! npm v4.1.1
npm ERR! angular-quickstart@0.0.0 start: ng serve
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-quickstart@0.0.0 start script 'ng serve'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular-quickstart package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ng serve
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular-quickstart
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular-quickstart
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

it says port 4200 is already in use.
I am using windows
Jan 29 2017 18:22
If you have tried running multiple times then there is likely a process running in the background that is using 4200. Try restarting your computer... Then retry the command.
If it still is in use then specify another port for the with the --port=4201
Jan 29 2017 18:28
Also, if you are running the angular-cli simultaneously with an ionic app. Start the Ionic app after the angular-cli is running and the latest version of ionic cli will automatically try a different port if 4200 is already in use.