File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,13 +25,19 @@ Vite requires [Node.js](https://nodejs.org/en/) version >=12.0.0.
2525With NPM:
2626
2727``` bash
28- $ npm init @vitejs/app
28+ $ npm init vite@latest
2929```
3030
3131With Yarn:
3232
3333``` bash
34- $ yarn create @vitejs/app
34+ $ yarn create vite
35+ ```
36+
37+ With PNPM:
38+
39+ ``` bash
40+ $ pnpx create-vite
3541```
3642
3743Then follow the prompts!
@@ -40,13 +46,13 @@ You can also directly specify the project name and the template you want to use
4046
4147``` bash
4248# npm 6.x
43- npm init @vitejs/app my-vue-app --template vue
49+ npm init vite@latest my-vue-app --template vue
4450
4551# npm 7+, extra double-dash is needed:
46- npm init @vitejs/app my-vue-app -- --template vue
52+ npm init vite@latest my-vue-app -- --template vue
4753
4854# yarn
49- yarn create @vitejs/app my-vue-app --template vue
55+ yarn create vite my-vue-app --template vue
5056```
5157
5258Supported template presets include:
Original file line number Diff line number Diff line change 11# 2.5.0 (2021-07-12)
22
3+ * @vitejs/create-app has been moved to create-vite, so the command to scaffold a Vite app is now shorter and easier to remember.
4+
5+ With NPM:
6+
7+ ``` bash
8+ $ npm init vite@latest
9+ ```
10+
11+ With Yarn:
12+
13+ ``` bash
14+ $ yarn create vite
15+ ```
16+
17+ With PNPM:
18+
19+ ``` bash
20+ $ pnpx create-vite
21+ ```
322
423
524## [ 2.4.5] ( https://github.com/vitejs/vite/compare/create-app@2.4.4...create-app@2.4.5 ) (2021-07-05)
Original file line number Diff line number Diff line change 88With NPM:
99
1010``` bash
11- $ npm init @vitejs/app
11+ $ npm init vite@latest
1212```
1313
1414With Yarn:
1515
1616``` bash
17- $ yarn create @vitejs/app
17+ $ yarn create vite
1818```
1919
2020With PNPM:
2121
2222``` bash
23- $ pnpx @vitejs/ create-vite
23+ $ pnpx create-vite
2424```
2525
2626Then follow the prompts!
You can’t perform that action at this time.
0 commit comments