]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
docs: update vite init command (#4176) [ci skip]
authorOtto <web@ijust.cc>
Fri, 23 Jul 2021 20:03:19 +0000 (04:03 +0800)
committerGitHub <noreply@github.com>
Fri, 23 Jul 2021 20:03:19 +0000 (16:03 -0400)
README.md

index 429cf073980fc9efd9ce219d3241c24403590a1c..495897150eafccc5a4d0769dc0e5d27df904746a 100644 (file)
--- a/README.md
+++ b/README.md
@@ -9,11 +9,12 @@ This is the repository for Vue 3.0.
 - Scaffold via [Vite](https://github.com/vitejs/vite):
 
   ```bash
-  # npm
-  npm init @vitejs/app
+  # npm 6.x
+  npm init vite@latest my-vue-app --template vue
+  # npm 7+, extra double-dash is needed:
+  npm init vite@latest my-vue-app -- --template vue
   # yarn
-  yarn create @vitejs/app
-  # select vue template
+  yarn create vite my-vue-app --template vue
   ```
 
 - Scaffold via [vue-cli](https://cli.vuejs.org/):