Skip to content

Commit 082fe57

Browse files
committed
docs: update package manager guide
1 parent 19e12f8 commit 082fe57

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

docs/guide/getting-started.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ VuePress v2 is currently in `beta` stage. It's ready to be used for building you
77
## Prerequisites
88

99
- [Node.js v18.16.0+](https://nodejs.org/)
10-
- [Yarn v1 classic](https://classic.yarnpkg.com/en/) (Optional)
10+
- Package manager like [pnpm](https://pnpm.io), [yarn](https://classic.yarnpkg.com/en/), [npm](https://www.npmjs.com), etc.
1111

1212
::: tip
13-
- With [pnpm](https://pnpm.io/), you may need to install `vue` and `@vuepress/client` as peer-dependencies, i.e. `pnpm add -D vue @vuepress/client@next`.
14-
- With [yarn 2](https://yarnpkg.com/), you need to set `nodeLinker: 'node-modules'` in your [`.yarnrc.yml`](https://yarnpkg.com/configuration/yarnrc#nodeLinker) file.
13+
14+
- When using [pnpm](https://pnpm.io/), you need to install `vue` and `@vuepress/client` as peer-dependencies.
15+
- When using [yarn 2+](https://yarnpkg.com/), you need to set `nodeLinker: 'node-modules'` in your [`.yarnrc.yml`](https://yarnpkg.com/configuration/yarnrc#nodeLinker) file.
16+
1517
:::
1618

1719
## Manual Installation

docs/zh/guide/getting-started.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ VuePress v2 目前仍处于 `beta` 阶段。你已经可以用它来构建你的
77
## 依赖环境
88

99
- [Node.js v18.16.0+](https://nodejs.org/)
10-
- [Yarn v1 classic](https://classic.yarnpkg.com/zh-Hans/) (可选)
10+
- 包管理器,如 [pnpm](https://pnpm.io/zh/)[yarn](https://classic.yarnpkg.com/en/)[npm](https://www.npmjs.com/) 等。
1111

1212
::: tip
1313

14-
- 使用 [pnpm](https://pnpm.io/zh/) 时,你可能需要安装 `vue``@vuepress/client` 作为 peer-dependencies ,即 `pnpm add -D vue @vuepress/client@next`
15-
- 使用 [yarn 2](https://yarnpkg.com/) 时,你需要在 [`.yarnrc.yml`](https://yarnpkg.com/configuration/yarnrc#nodeLinker) 文件中设置 `nodeLinker: 'node-modules'`
16-
:::
14+
- 使用 [pnpm](https://pnpm.io/zh/) 时,你需要安装 `vue``@vuepress/client` 作为 peer-dependencies 。
15+
- 使用 [yarn 2+](https://yarnpkg.com/) 时,你需要在 [`.yarnrc.yml`](https://yarnpkg.com/configuration/yarnrc#nodeLinker) 文件中设置 `nodeLinker: 'node-modules'`
16+
17+
:::
1718

1819
## 手动安装
1920

0 commit comments

Comments
 (0)