docs: install with pnpm (#9850)
This commit is contained in:
@@ -5,11 +5,17 @@
|
||||
### npm
|
||||
|
||||
```bash
|
||||
# Install Vant 2 for Vue 2 project
|
||||
npm i vant -S
|
||||
# install Vant 2 for Vue 2 project
|
||||
npm i vant@2
|
||||
|
||||
# Install Vant 3 for Vue 3 project
|
||||
npm i vant@next -S
|
||||
# install Vant 3 for Vue 3 project
|
||||
npm i vant@3
|
||||
|
||||
# with yarn
|
||||
yarn add vant@3
|
||||
|
||||
# with pnpm
|
||||
pnpm add vant@3
|
||||
```
|
||||
|
||||
### CDN
|
||||
|
||||
@@ -8,14 +8,20 @@
|
||||
|
||||
### 通过 npm 安装
|
||||
|
||||
在现有项目中使用 Vant 时,可以通过 `npm` 或 `yarn` 进行安装:
|
||||
在现有项目中使用 Vant 时,可以通过 `npm`、`yarn` 或 `pnpm` 进行安装:
|
||||
|
||||
```bash
|
||||
# Vue 2 项目,安装 Vant 2:
|
||||
npm i vant -S
|
||||
# Vue 2 项目,安装 Vant 2
|
||||
npm i vant@2
|
||||
|
||||
# Vue 3 项目,安装 Vant 3:
|
||||
npm i vant@next -S
|
||||
# Vue 3 项目,安装 Vant 3
|
||||
npm i vant@3
|
||||
|
||||
# 通过 yarn 安装
|
||||
yarn add vant@3
|
||||
|
||||
# 通过 pnpm 安装
|
||||
pnpm add vant@3
|
||||
```
|
||||
|
||||
### 通过 CDN 安装
|
||||
|
||||
Reference in New Issue
Block a user