From: Otto Date: Fri, 23 Jul 2021 20:03:19 +0000 (+0800) Subject: docs: update vite init command (#4176) [ci skip] X-Git-Tag: v3.2.0-beta.5~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1015700e1e13de62d7668d83c6178e0827e7b245;p=thirdparty%2Fvuejs%2Fcore.git docs: update vite init command (#4176) [ci skip] --- diff --git a/README.md b/README.md index 429cf07398..495897150e 100644 --- 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/):