Skip to content

Commit 9be25f7

Browse files
authored
chore: update installation instructions for Vite (#1138)
* chore: update deprecated Vite installation instructions for the installation guide * chore: remove mention of deprecated `create-vite-app`
1 parent 475f10c commit 9be25f7

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/guide/installation.md

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

9999
```bash
100-
$ npm init @vitejs/app <project-name>
100+
$ npm init vite <project-name> -- --template vue
101101
$ cd <project-name>
102102
$ npm install
103103
$ npm run dev
@@ -106,18 +106,12 @@ $ npm run dev
106106
Or with Yarn:
107107

108108
```bash
109-
$ yarn create @vitejs/app <project-name>
109+
$ yarn create vite <project-name> --template vue
110110
$ cd <project-name>
111111
$ yarn
112112
$ yarn dev
113113
```
114114

115-
It might occur, that when your username has a space in it like 'Mike Baker', Vite cannot succeed. Have a try with
116-
117-
```bash
118-
$ create-vite-app <project-name>
119-
```
120-
121115
## Explanation of Different Builds
122116

123117
In the [`dist/` directory of the npm package](https://cdn.jsdelivr.net/npm/vue@3.0.2/dist/) you will find many different builds of Vue.js. Here is an overview of which `dist` file should be used depending on the use-case.

0 commit comments

Comments
 (0)