Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Matthew Francis
Matthew Francis
6,967 Points

First time using nodemon - nodemon --debug is deprecated, and app crash issue

newer versions of node.js has it's own in-built inspector, so I started the debugger with

node --inspect --debug-brk src/app.js

This gives me the link of inspector, like:

chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:9229/22d2b6f4-ec33-493f-b7d1-91bc8b1949f1i

Problem is, when I every small change, I have to restart the server, get the link for the inspector again. So I started using nodemon.

I installed it succesfully, but whenever I try to start it with nodemon --debug src/app.js it says

nodemon --debug is deprecated, please use node --inspect and [nodemon] app crashed - waiting for file changes before starting... , so I used node --inspect src/app.js`` and it gave meStarting inspector on 127.0.0.1:9229 failed: address already in use.```

I'm not sure how to make nodemon work, any ideas?