执行命令:

# npm 6.x
npm init vite@latest my-app --template react

# npm 7+, 需要额外的双横线:
npm init vite@latest my-app -- --template react

# yarn
yarn create vite my-app --template react

# pnpm
pnpm create vite my-app -- --template react

目前模板:
在这里插入图片描述

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐