Skip to content

Commit 2cdb3f6

Browse files
authored
docs(create-app): add npm@7 and yarn usage (#2513)
1 parent 74e6f3d commit 2cdb3f6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/create-app/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,14 @@ Then follow the prompts!
2222
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:
2323

2424
```bash
25+
# npm 6.x
2526
npm init @vitejs/app my-vue-app --template vue
27+
28+
# npm 7+, extra double-dash is needed:
29+
npm init @vitejs/app my-vue-app -- --template vue
30+
31+
# yarn
32+
yarn create @vitejs/app my-vue-app --template vue
2633
```
2734

2835
Currently supported template presets include:

0 commit comments

Comments
 (0)