如何更改vue cli项目的端口 1. 在根目录新建 vue.config.js 文件 2. 写入以下代码,保存 module.exports = { devServer: { port: 8081, }, lintOnSave: false } 3. 重新运行启动项目