first step
1. Use vue --version to check whether vue is installed.
如果没有安装,使用命令:npm install vue-cli -g 安装,安装成功之后会显示版本号
2. Create a project: Use the command vue create init-pwa-project to create a project, where init-pwa-project is the project name. After running, as follows.
Select vue3 to create:
successful installation Tips:
You can see the folder of the successfully created project in your directory
3. Run the project
- Enter the init-pwa-project directory
- Run the command npm run serve and get the following results
4. Web page effect
Browser access http://localhost:8081/ or the corresponding ip+port