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.