node-docker-good-defaults icon indicating copy to clipboard operation
node-docker-good-defaults copied to clipboard

Starting inspector on 0.0.0.0:9229 failed: address already in use

Open vettloffah opened this issue 5 years ago • 3 comments

When nodemon restarts the app it crashes: Starting inspector on 0.0.0.0:9229 failed: address already in use

I tried upgrading to newer version of nodemon, not sure what else to do here other than remove the inspect flag. Any help is appreciated!

vettloffah avatar May 07 '20 20:05 vettloffah

Search the nodemon issues. They talk about that problem. I sometimes get it and don't have a fix.

BretFisher avatar May 11 '20 04:05 BretFisher

@vettloffah

Hi, did you find a fix ?

I have the same issue, each time nodemon restarts, dev env can not start. address already in use

diegolaciar avatar Jul 13 '20 01:07 diegolaciar

update nodemon to v2.0.4 fixed the issue..

also changed docker-compose command like:

command: ../node_modules/.bin/nodemon

and added nodemon.json with this line, moving inspect to nodemon.json, also I' m using typescript

"exec": "node --inspect=0.0.0.0:9229 -r ts-node/register ./src/server.ts"  

diegolaciar avatar Jul 13 '20 02:07 diegolaciar