①全局安装
npm install -g @vue/cli
②创建一个项目
vue create hello-world
③错误采用vue serve命令,结果出现下面这个
Command vue serve requires a global addon to be installed. Please run npm i -g @vue/cli-service-global and try again.
④继续执行了
npm i -g @vue/cli-service-global
⑤重新npm run serve,输出末尾是
App running at: - Local: http://localhost:8080/ - Network: http://192.168.0.101:8080/ Note that the development build is not optimized. To create a production build, run npm run build.
⑥访问http://192.168.0.101:8080/,显示如下
⑦按代码执行顺序分析脚手架结构(https://www.bilibili.com/video/BV1Zy4y1K7SH?p=62)
即执行了npm run serve之后从哪个文件开始运行的。