From 733a2149d65752d38cbfa453edcc888706421982 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Mon, 7 Feb 2022 17:50:43 +0800 Subject: [PATCH] docs: update install guide --- README.md | 12 ++++++------ README.zh-CN.md | 12 ++++++------ packages/vant/docs/markdown/quickstart.en-US.md | 12 ++++++------ packages/vant/docs/markdown/quickstart.zh-CN.md | 12 ++++++------ 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index fa3e46a44..90229053e 100644 --- a/README.md +++ b/README.md @@ -45,21 +45,21 @@ Using `npm` to install: ```bash -# install Vant 2 for Vue 2 project -npm i vant@2 +# install latest Vant for Vue 3 project +npm i vant -# install Vant 3 for Vue 3 project -npm i vant@3 +# install Vant 2 for Vue 2 project +npm i vant@latest-v2 ``` Using `yarn` or `pnpm`: ```bash # with yarn -yarn add vant@3 +yarn add vant # with pnpm -pnpm add vant@3 +pnpm add vant ``` ## Quickstart diff --git a/README.zh-CN.md b/README.zh-CN.md index 42a7d38d6..397a0952b 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -49,21 +49,21 @@ Vant 是**有赞前端团队**开源的移动端组件库,于 2017 年开源 在现有项目中使用 Vant 时,可以通过 `npm` 进行安装: ```bash -# Vue 2 项目,安装 Vant 2 -npm i vant@2 +# Vue 3 项目,安装最新版 Vant +npm i vant -# Vue 3 项目,安装 Vant 3 -npm i vant@3 +# Vue 2 项目,安装 Vant 2 +npm i vant@latest-v2 ``` 当然,你也可以通过 `yarn` 或 `pnpm` 进行安装: ```bash # 通过 yarn 安装 -yarn add vant@3 +yarn add vant # 通过 pnpm 安装 -pnpm add vant@3 +pnpm add vant ``` ## 快速上手 diff --git a/packages/vant/docs/markdown/quickstart.en-US.md b/packages/vant/docs/markdown/quickstart.en-US.md index da242d60d..47aca36af 100644 --- a/packages/vant/docs/markdown/quickstart.en-US.md +++ b/packages/vant/docs/markdown/quickstart.en-US.md @@ -7,21 +7,21 @@ Using `npm` to install: ```bash -# install Vant 2 for Vue 2 project -npm i vant@2 +# install latest Vant for Vue 3 project +npm i vant -# install Vant 3 for Vue 3 project -npm i vant@3 +# install Vant 2 for Vue 2 project +npm i vant@latest-v2 ``` Using `yarn` or `pnpm`: ```bash # with yarn -yarn add vant@3 +yarn add vant # with pnpm -pnpm add vant@3 +pnpm add vant ``` ### CDN diff --git a/packages/vant/docs/markdown/quickstart.zh-CN.md b/packages/vant/docs/markdown/quickstart.zh-CN.md index e33e68e02..7a74f3d09 100644 --- a/packages/vant/docs/markdown/quickstart.zh-CN.md +++ b/packages/vant/docs/markdown/quickstart.zh-CN.md @@ -11,21 +11,21 @@ 在现有项目中使用 Vant 时,可以通过 `npm` 进行安装: ```bash -# Vue 2 项目,安装 Vant 2 -npm i vant@2 +# Vue 3 项目,安装最新版 Vant +npm i vant -# Vue 3 项目,安装 Vant 3 -npm i vant@3 +# Vue 2 项目,安装 Vant 2 +npm i vant@latest-v2 ``` 当然,你也可以通过 `yarn` 或 `pnpm` 进行安装: ```bash # 通过 yarn 安装 -yarn add vant@3 +yarn add vant # 通过 pnpm 安装 -pnpm add vant@3 +pnpm add vant ``` ### 通过 CDN 安装