From e4973e7a05a6f4d6ccb82ba9b5557060a2e151d1 Mon Sep 17 00:00:00 2001 From: Jens Vanhulst <43351822+JensVanhulst@users.noreply.github.com> Date: Mon, 23 Aug 2021 10:30:40 +0200 Subject: [PATCH 1/3] fix: double dashes in command with vite --- src/guide/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/installation.md b/src/guide/installation.md index 03f44207fe..d9d1b1326f 100644 --- a/src/guide/installation.md +++ b/src/guide/installation.md @@ -97,7 +97,7 @@ Vue projects can quickly be set up with Vite by running the following commands i With npm: ```bash -$ npm init vite -- --template vue +$ npm init vite --template vue $ cd $ npm install $ npm run dev From 8b8a09ef187e20904306410a5273007616e1da34 Mon Sep 17 00:00:00 2001 From: Jens Vanhulst <43351822+JensVanhulst@users.noreply.github.com> Date: Mon, 23 Aug 2021 11:21:20 +0200 Subject: [PATCH 2/3] Updated for npm 6 and 7 users --- src/guide/installation.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/guide/installation.md b/src/guide/installation.md index d9d1b1326f..ad6e6fe664 100644 --- a/src/guide/installation.md +++ b/src/guide/installation.md @@ -97,7 +97,13 @@ Vue projects can quickly be set up with Vite by running the following commands i With npm: ```bash -$ npm init vite --template vue + +# npm 6.x +$ npm init vite@latest --template vue + +# npm 7+, extra double-dash is needed: +$ npm init vite@latest -- --template vue + $ cd $ npm install $ npm run dev From 568781462f7825103c330f266409f93c9ab89364 Mon Sep 17 00:00:00 2001 From: Jens Vanhulst <43351822+JensVanhulst@users.noreply.github.com> Date: Mon, 23 Aug 2021 11:21:47 +0200 Subject: [PATCH 3/3] Fix bad spacing --- src/guide/installation.md | 1 - 1 file changed, 1 deletion(-) diff --git a/src/guide/installation.md b/src/guide/installation.md index ad6e6fe664..f6c7adeaa6 100644 --- a/src/guide/installation.md +++ b/src/guide/installation.md @@ -97,7 +97,6 @@ Vue projects can quickly be set up with Vite by running the following commands i With npm: ```bash - # npm 6.x $ npm init vite@latest --template vue