Skip to content

Commit dad6c6d

Browse files
authored
fix: double dashes in command with vite (#1201)
* fix: double dashes in command with vite * Updated for npm 6 and 7 users * Fix bad spacing
1 parent 6152a38 commit dad6c6d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/guide/installation.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,12 @@ Vue projects can quickly be set up with Vite by running the following commands i
9797
With npm:
9898

9999
```bash
100-
$ npm init vite <project-name> -- --template vue
100+
# npm 6.x
101+
$ npm init vite@latest <project-name> --template vue
102+
103+
# npm 7+, extra double-dash is needed:
104+
$ npm init vite@latest <project-name> -- --template vue
105+
101106
$ cd <project-name>
102107
$ npm install
103108
$ npm run dev

0 commit comments

Comments
 (0)