Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

178
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!