如何给Vue项目指定端口号 简介:如何给Vue项目指定端口号. 步骤 打开vue.config.js文件 在vue.config.js文件夹中加入下面内容。 devServer: { port: 8082 }