Answer the question
In order to leave comments, you need to log in
Nodejs server crashes on every save?
Every time the file is saved, the server reboots with the help of backpack
and displays a message that the port is busy and does not have time to start, I
kill this port with the kill [PID] command, but the problem repeats
Error: listen EADDRINUSE: address already in use :::3000
at Server.setupListenHandle [as _listen2] (net.js:1314:16)
at listenInCluster (net.js:1362:12)
at Server.listen (net.js:1448:7)
at Application.listen (/Users/emilov/projects/nodejs-koa-ts-boilerplate/node_modules/koa/lib/application.js:80:19)
at Object.call (/Users/emilov/projects/nodejs-koa-ts-boilerplate/build/webpack:/src/server.ts:3:5)
at n (/Users/emilov/projects/nodejs-koa-ts-boilerplate/build/webpack:/webpack/bootstrap:19:22)
at Object.call (/Users/emilov/projects/nodejs-koa-ts-boilerplate/build/main.js:2:5289)
at __webpack_require__ (/Users/emilov/projects/nodejs-koa-ts-boilerplate/build/webpack:/webpack/bootstrap:19:22)
at module.exports../src/app.ts (/Users/emilov/projects/nodejs-koa-ts-boilerplate/build/webpack:/webpack/bootstrap:83:10)
at Object.<anonymous> (/Users/emilov/projects/nodejs-koa-ts-boilerplate/build/main.js:2:972)
at Module._compile (internal/modules/cjs/loader.js:1185:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1205:10)
at Module.load (internal/modules/cjs/loader.js:1034:32)
at Function.Module._load (internal/modules/cjs/loader.js:923:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47
Answer the question
In order to leave comments, you need to log in
By saving a file, do you mean changes in the application code, or uploading a file to the server from the client?
That's it, I read what your bagpack is, but why didn't nodemon actually work? file code where the server starts can be?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question