Skip to content

Commit 5c3fd4b

Browse files
authored
docs: use npm create instead of npm init (#2455)
For consistency across package managers. `yarn` and `pnpm` only support the `create` subcommand. `init` means something different for them. So using `create` leads to the least confusion if the user is using multiple package managers.
1 parent 70b4d5d commit 5c3fd4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/guide/quick-start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ In this section we will introduce how to scaffold a Vue [Single Page Application
2424

2525
Make sure you have an up-to-date version of [Node.js](https://nodejs.org/) installed and your current working directory is the one where you intend to create a project. Run the following command in your command line (without the `>` sign):
2626

27-
<div class="language-sh"><pre><code><span class="line"><span style="color:var(--vt-c-green);">&gt;</span> <span style="color:#A6ACCD;">npm init vue@latest</span></span></code></pre></div>
27+
<div class="language-sh"><pre><code><span class="line"><span style="color:var(--vt-c-green);">&gt;</span> <span style="color:#A6ACCD;">npm create vue@latest</span></span></code></pre></div>
2828

2929
This command will install and execute [create-vue](https://github.com/vuejs/create-vue), the official Vue project scaffolding tool. You will be presented with prompts for several optional features such as TypeScript and testing support:
3030

src/guide/scaling-up/tooling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ It is also recommended to use these online playgrounds to provide reproductions
2121

2222
To get started with Vite + Vue, simply run:
2323

24-
<div class="language-sh"><pre><code><span class="line"><span style="color:var(--vt-c-green);">$</span> <span style="color:#A6ACCD;">npm init vue@latest</span></span></code></pre></div>
24+
<div class="language-sh"><pre><code><span class="line"><span style="color:var(--vt-c-green);">$</span> <span style="color:#A6ACCD;">npm create vue@latest</span></span></code></pre></div>
2525

2626
This command will install and execute [create-vue](https://github.com/vuejs/create-vue), the official Vue project scaffolding tool.
2727

0 commit comments

Comments
 (0)