npm init vite-app <project-name> cd <project-name> npm install npm run dev 民间 首先安装 create-vite-app npm install create-vite-app --save-dev npx create-vite-app vue3 cd vue3 npm install npm run dev npm run build ------------------------------ vite文档给出的命令是
npm init @vitejs/app
可以选择项目模板,以及使用js或者ts npm init vite-app yarn create vite-app 等价于 全局安装create-vite-app 然后cva 等价于 npx create-vite-app 即npx会帮你全局安装用到的包
npm init @vitejs/app