SoFunction
Updated on 2025-04-05

How to modify the port number vue-cli3.0

vue-cli3.0 modify port number

Modify under the file --port

"scripts": {
   "serve": "vue-cli-service serve --port 9001",
 }

Modify under the file

 = {
  devServer: {
    port: 9001
  }
}

vue-cli3.0 sets the specified port number to run

Create a file in the project root directory

 = {
  devServer: {
    port: 3000, // Port  },
  // lintOnSave: false // Cancel eslint verification}

Just run the project

The above is personal experience. I hope you can give you a reference and I hope you can support me more.