Starting inspector on 0.0.0.0:9229 failed: address already in use
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!
Search the nodemon issues. They talk about that problem. I sometimes get it and don't have a fix.
@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
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"