Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

180
Vistas
How do you keep a port open automatically for testing in VS Code web applications?

I'm using Visual Studio Code to launch a server for an web application that uses the following packages: nodemon (automatically restarts server), express, ejs, node.js, lodash, morgan, and mongoose.

Every time I activate the server with the following code in the VS Code terminal nodemon app.js or nodemon start I get an error message informing me the port 3000 (one I use for testing) is already in use. I found a solution to solve this in the windows command prompt by entering npx kill-port 3000 in terminal. But I find this repetitive and annoying doing this every single time I update my app.js server code. Is there a more perminent solution to remove the need to type in the windows command prompt terminal?

Operating System: Windows 10 IDE: Visual Studio Code: Version: 1.66.2 (user setup) Error info: node:events:498 throw er; // Unhandled 'error' event ^

Error: listen EADDRINUSE: address already in use :::3000 at Server.setupListenHandle [as _listen2] (node:net:1330:16) at listenInCluster (node:net:1378:12) at Server.listen (node:net:1465:7) at Function.listen (C:\Users\Gamer\Documents\Visual Studio Code repositories\M06 Tutorial Lessons 8-10\node-crash-course-lesson-8\node_modules\express\lib\application.js:635:24) at C:\Users\Gamer\Documents\Visual Studio Code repositories\M06 Tutorial Lessons 8-10\node-crash-course-lesson-8\app.js:10:25Emitted 'error' event on Server instance at: at emitErrorNT (node:net:1357:8) at processTicksAndRejections (node:internal/process/task_queues:83:21) { code: 'EADDRINUSE', errno: -4091, syscall: 'listen', address: '::', port: 3000

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda