deno
deno copied to clipboard
Vite Project Conflicts with Deno and Other Package Managers
Version: Deno 2.0.4 OS: Fedora
Vite Project Conflicts with Deno and Other Package Managers
When you run a Vite project, the default port is set to http://localhost:5173/
. When you try to run another Vite project while the first one is still running, it automatically sets the port to http://localhost:5174/
.
However, when running a Vite project with Deno, it does not recognize if another Vite project is running with a different package manager, resulting in both projects using the same port.
I’ve tested various package managers, and they work as expected, but Deno seems to overlap on the same port.
Steps to reproduce the issue:
- Create a vite project with pnpm (or any other package manager):
pnpm create vite my-app -- --template vue
cd my-app
pnpm install
pnpm run dev
- Create a vite project with deno:
deno run -A npm:create-vite@latest my-app2 -- --template vue
cd my-app2
deno install
deno task dev
- Run Both Projects Simultaneously: Run both projects at the same time, and they will overlap.