mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 14:48:41 +00:00
docs: change npm and pnpm to be lowercase (#18342)
This commit is contained in:
parent
4c5cf91d12
commit
4ab37fd6e5
@ -2,7 +2,7 @@
|
||||
|
||||
At the very basic level, developing using Vite is not that different from using a static file server. However, Vite provides many enhancements over native ESM imports to support various features that are typically seen in bundler-based setups.
|
||||
|
||||
## NPM Dependency Resolving and Pre-Bundling
|
||||
## npm Dependency Resolving and Pre-Bundling
|
||||
|
||||
Native ES imports do not support bare module imports like the following:
|
||||
|
||||
|
@ -49,7 +49,7 @@ Vite requires [Node.js](https://nodejs.org/en/) version 18+ or 20+. However, som
|
||||
|
||||
::: code-group
|
||||
|
||||
```bash [NPM]
|
||||
```bash [npm]
|
||||
$ npm create vite@latest
|
||||
```
|
||||
|
||||
@ -57,7 +57,7 @@ $ npm create vite@latest
|
||||
$ yarn create vite
|
||||
```
|
||||
|
||||
```bash [PNPM]
|
||||
```bash [pnpm]
|
||||
$ pnpm create vite
|
||||
```
|
||||
|
||||
@ -73,7 +73,7 @@ You can also directly specify the project name and the template you want to use
|
||||
|
||||
::: code-group
|
||||
|
||||
```bash [NPM]
|
||||
```bash [npm]
|
||||
# npm 7+, extra double-dash is needed:
|
||||
$ npm create vite@latest my-vue-app -- --template vue
|
||||
```
|
||||
@ -82,7 +82,7 @@ $ npm create vite@latest my-vue-app -- --template vue
|
||||
$ yarn create vite my-vue-app --template vue
|
||||
```
|
||||
|
||||
```bash [PNPM]
|
||||
```bash [pnpm]
|
||||
$ pnpm create vite my-vue-app --template vue
|
||||
```
|
||||
|
||||
@ -118,7 +118,7 @@ In your project, you can install the `vite` CLI using:
|
||||
|
||||
::: code-group
|
||||
|
||||
```bash [NPM]
|
||||
```bash [npm]
|
||||
$ npm install -D vite
|
||||
```
|
||||
|
||||
@ -126,7 +126,7 @@ $ npm install -D vite
|
||||
$ yarn add -D vite
|
||||
```
|
||||
|
||||
```bash [PNPM]
|
||||
```bash [pnpm]
|
||||
$ pnpm add -D vite
|
||||
```
|
||||
|
||||
@ -146,7 +146,7 @@ Then run the appropriate CLI command in your terminal:
|
||||
|
||||
::: code-group
|
||||
|
||||
```bash [NPM]
|
||||
```bash [npm]
|
||||
$ npx vite
|
||||
```
|
||||
|
||||
@ -154,7 +154,7 @@ $ npx vite
|
||||
$ yarn vite
|
||||
```
|
||||
|
||||
```bash [PNPM]
|
||||
```bash [pnpm]
|
||||
$ pnpm vite
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user