1,生成脚手架 vue 2.6.8
npm install -g @vue/cli
vue create hello-world
cd hello-world
npm run serve
2,修改8080端口号
位置: hello-world\node_modules\@vue\cli-service\lib\commands\serve.js
const defaults = {
host: '0.0.0.0',
port: 8081, // 修改
https: false
}npm run serve ===> http://localhost:8081/ 访问