Understanding the Behavior of `npm run dev` and Forcing it to Use Port 3000

One common question that comes up when working on a local website is related to the behavior of the npm run dev command. Each time this command is executed, it starts a long-running process that spins up a local development server. This practice is widely used in web development, and many tools like Astro and Next.js rely on the same command. However, one observation developers make is that each time they run npm run dev, the localhost port gets incremented....