1. 使用不同包
// 使用 npm
npm init @vitejs/app
// 使用 yarn
yarn create @vitejs/app
2.想指定项目名称和使用某个特定框架的模版时,可以像下面这样
// npm
npm init @vitejs/app < project-name > --template vue
// yarn
yarn create @vitejs/app < project-name > --template vue
3.运行
cd <project-name>
npm install
npm run dev