Skip to content

Commit 3392a8a

Browse files
fix: pnpm create-vite command documentation (#4902)
* Fixed pnpm create-vite command documentation pnpx is deprecated: https://pnpm.io/pnpx-cli * Replaced other pnpx entries
1 parent ce29273 commit 3392a8a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

docs/guide/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $ yarn create vite
3737
With PNPM:
3838

3939
```bash
40-
$ pnpx create-vite
40+
$ pnpm dlx create-vite
4141
```
4242

4343
Then follow the prompts!

packages/create-app/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { yellow, green } = require('kolorist')
55

66
const alternativeCommands = {
77
yarn: 'yarn create vite',
8-
pnpm: 'pnpx create-vite',
8+
pnpm: 'pnpm dlx create-vite',
99
npm: 'npm init vite',
1010
unknown: 'npm init vite'
1111
}

packages/create-vite/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ $ yarn create vite
7676
With PNPM:
7777

7878
```bash
79-
$ pnpx create-vite
79+
$ pnpm dlx create-vite
8080
```
8181

8282

packages/create-vite/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $ yarn create vite
2020
With PNPM:
2121

2222
```bash
23-
$ pnpx create-vite
23+
$ pnpm dlx create-vite
2424
```
2525

2626
Then follow the prompts!
@@ -38,7 +38,7 @@ npm init vite@latest my-vue-app -- --template vue
3838
yarn create vite my-vue-app --template vue
3939

4040
# pnpm
41-
pnpx create-vite my-vue-app --template vue
41+
pnpm dlx create-vite my-vue-app --template vue
4242
```
4343

4444
Currently supported template presets include:

0 commit comments

Comments
 (0)