// 安装全局的vite 创建项目 npm install -g create-vite-app create-vite-app vue3-demo cd vue3-vite npm install npm run dev // # 或者使用yarn yarn add -g create-vite-app yarn create vite-app <project-name> //使用 yarn yarn yarn dev //然后启动项目