I'm very new to Node.js and I installed nodemon globally, but while when I start my app with npm start command in terminal I do get the message:
vinnytwice@Vinnys-iMac fixit_server_node % npm start
> fixit_server_node@1.0.0 start
> node server.js
App executing to port 3000
while if I use the command nodemon start in terminal I get:
vinnytwice@Vinnys-iMac fixit_server_node % nodemon start
[nodemon] 2.0.7
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node start index.js`
[nodemon] clean exit - waiting for changes before restart
not showing any execution on any port, and in fact when hitting an endpoint I get Error: connect ECONNREFUSED 127.0.0.1:3000.
If instead I start it with the command nodemon server.js then it does work.
Why npm start fired the server.js file and nodemon start doesn't? Is there something I shaven't set properly?