Skip to content
On this page

项目初始化

一、项目准备

版本

  • Vite 需要 Node.js 版本 >= 12.0.0

参考网站

vite官网typescript官网vue3官网

一。创建项目

shell
# npm 6.x
npm init vite@latest vue3-admin --template vue

# npm 7+, 需要额外的双横线:
npm init vite@latest vue3-admin -- --template vue

# yarn
yarn create vite vue3-admin --template vue

# pnpm
pnpm create vite vue3-admin -- --template vue
1
2
3
4
5
6
7
8
9
10
11

执行命令前请自行安装 npm、yarn 或 pnpm 等工具 https://yarnpkg.com/getting-started/installhttps://pnpm.io/installation


沪ICP备20006251号-1