When I start ng serve server
on the command line it fails with:
Starting inspector on localhost:7777 failed: address already in use
This is expected, because there is really already another instance running.
So how can I change the inspector port for this instance?
I've tried to set the env-var NODE_OPTIONS
to
'--inspect=7888'
'--inspect=localhost:7888'
both had no effect: i.e. it was still failing with
Starting inspector on localhost:7777 failed: address already in use
Note:
I do NOT want to change the application port: e.g. ng serve --port 5600
- it's only about the node-inspector port