mirror of
https://github.com/youzan/vant.git
synced 2025-10-14 23:20:41 +00:00
docs: update install guide
This commit is contained in:
12
README.md
12
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
|
||||
|
Reference in New Issue
Block a user