node.jsionic-framework

Cannot run "ionic lab"


I cannot run the command ionic lab or ionic serve -l because I get the error: listen EACCES 127.0.0.1:8200

I've run:

npm install -g ionic cordova
ionic start myIonicApp blank
cd myIonicApp 
npm i -D -E @ionic/lab
ionic lab

Then the error occurs:

ionic-lab http://localhost:8100 --host localhost --port 8200 --project-type ionic-angular --app-name myIonicApp --app-version 0.0.1

events.js:183
      throw er; // Unhandled 'error' event
      ^
> Error: listen EACCES 127.0.0.1:8200
>      at Server.setupListenHandle [as _listen2] (net.js:1343:19)
>      at listenInCluster (net.js:1401:12)    at GetAddrInfoReqWrap.doListen [as callback] (net.js:1510:7)
>      at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:72:10)

Versions:

Node: v8.12.0

Ionic CLI: 4.8.0

Cordova: 8.1.2 (cordova-lib@8.1.1)

I've also tried to change the port with this command: ionic serve -l -p 27222 but the error "Error: listen EACCES 127.0.0.1:8200" continues.

When I run "netstat" it shows that a proccess svchost.exe is listening on port 8200. The proccess id corresponds to "System" proccess ("NT Kernel and System")

Anyone knows what may be happening?


Solution

  • The problem was my local IIS. It had an application running on port 8200.