Vue starts port 80 under mac and reports an error
P粉642919823
P粉642919823 2023-09-06 10:58:31
0
1
627

MacOS starts the vue project, the port number is 80, it seems that ports below 1024 are disabled on mac. how to solve this problem

I hope everyone can help me solve the problem of enabling port 80 project under mac

P粉642919823
P粉642919823

reply all(1)
P粉121081658

This error occurs when the port is already in use . You have two options to resolve this issue.

  • Termination port

  1. Use this command to check if the port is already in uselsof -i :80
  2. Kill the port using PID, if the port is in use kill {{PID}}, the port will be provided


  • Run the project on a different port

You can actually run your vue application on a different port

  1. Use Npm -> npm runserve --port 8080
  2. Use Yarn -> yarnserve --port 8080
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template