You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
events.js:167
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE :::3000
at Server.setupListenHandle [as _listen2] (net.js:1286:14)
at listenInCluster (net.js:1334:12)
at Server.listen (net.js:1421:7)
at Object.<anonymous> (/home/shinee/learn/nodejs/lesson-2/app.js:19:8)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
Emitted 'error' event at:
at emitErrorNT (net.js:1313:8)
at process._tickCallback (internal/process/next_tick.js:63:19)
at Function.Module.runMain (internal/modules/cjs/loader.js:744:11)
at startup (internal/bootstrap/node.js:285:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
[nodemon] app crashed - waiting for file changes before starting...
Steps to reproduce
I've actually tested few scenarios and found where is exact problem.
create folder named lesson-2 and create app.js file in it.
✗: catlesson-2/app.jsconstexpress=require('express');constapp=express();app.use((req,res,next)=>{res.send('<h1>Hello from Express!</h1>');});app.listen(3000);
run app.js by modifying package.json file to add script to run.
Pretty sure this is related to the change in #1463. I'm marking as fixed - please ping me if you see otherwise. You'll need to upgrade to nodemon@1.18.7 (currently being released).
nodemon -v
: 1.18.6node -v
: 10.13.0Expected behaviour
pick up changes without crash.
Actual behaviour
Steps to reproduce
I've actually tested few scenarios and found where is exact problem.
lesson-2
and createapp.js
file in it.If I modify the folder name to sth like
lesson2
it works like a charm and If I trylesson-2
it crashes.The text was updated successfully, but these errors were encountered: