From 2cdb3f6cdf742e42aa62e60f8fce1dadcab225d8 Mon Sep 17 00:00:00 2001 From: Songkeys Date: Mon, 15 Mar 2021 16:54:24 +0800 Subject: [PATCH] docs(create-app): add npm@7 and yarn usage (#2513) --- packages/create-app/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/create-app/README.md b/packages/create-app/README.md index 857ef269c41a83..c4ab2e42728621 100644 --- a/packages/create-app/README.md +++ b/packages/create-app/README.md @@ -22,7 +22,14 @@ Then follow the prompts! You can also directly specify the project name and the template you want to use via additional command line options. For example, to scaffold a Vite + Vue project, run: ```bash +# npm 6.x npm init @vitejs/app my-vue-app --template vue + +# npm 7+, extra double-dash is needed: +npm init @vitejs/app my-vue-app -- --template vue + +# yarn +yarn create @vitejs/app my-vue-app --template vue ``` Currently supported template presets include: