Skip to content

Commit 1015700

Browse files
author
Otto
authored
docs: update vite init command (vuejs#4176) [ci skip]
1 parent ac74e1d commit 1015700

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ This is the repository for Vue 3.0.
99
- Scaffold via [Vite](https://github.com/vitejs/vite):
1010

1111
```bash
12-
# npm
13-
npm init @vitejs/app
12+
# npm 6.x
13+
npm init vite@latest my-vue-app --template vue
14+
# npm 7+, extra double-dash is needed:
15+
npm init vite@latest my-vue-app -- --template vue
1416
# yarn
15-
yarn create @vitejs/app
16-
# select vue template
17+
yarn create vite my-vue-app --template vue
1718
```
1819

1920
- Scaffold via [vue-cli](https://cli.vuejs.org/):

0 commit comments

Comments
 (0)