Skip to content

Vite startup 3000 port occupancy problem #7016

@Broly789

Description

@Broly789

Describe the bug

My computer has started a front-end project, and the listening port is 3000. When I start another vite project, it still occupies port 3000 and does not open other ports for me. As a result, when I access the 3000 port link, I access the vite project, but the previous project can't be accessed.

Reproduction

https://github.com/Brolly0204/vite-admin

System Info

macOS Monterey  version 12.2.1
vite: "^2.8.0"

Used Package Manager

pnpm

Logs

vite --host

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions