这是indexloc提供的服务,不要输入任何密码
Skip to content

fix(docs): use pnpm add <pkg> instead of pnpm install <pkg> #10529

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/site/content/blog/turbo-1-6-0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Try it out now by [starting from the example](https://github.com/vercel/turbo/tr
</Tab>
<Tab value="pnpm">
```bash title="Terminal"
pnpm install turbo --save-dev
pnpm add turbo --save-dev
```

</Tab>
Expand Down
2 changes: 1 addition & 1 deletion docs/site/content/blog/turbo-1-7-0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ yarn global add turbo
</Tab>
<Tab value="pnpm">
```bash title="Terminal"
pnpm install turbo --global
pnpm add turbo --global
```

</Tab>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ To quickly install dependencies in multiple packages, you can use your package m
<Tab value="pnpm">

```bash title="Terminal"
pnpm install jest --save-dev --recursive --filter=web --filter=@repo/ui --filter=docs
pnpm add jest --save-dev --recursive --filter=web --filter=@repo/ui --filter=docs
```

<LinkToDocumentation href="https://pnpm.io/cli/recursive">pnpm documentation</LinkToDocumentation>
Expand Down
2 changes: 1 addition & 1 deletion docs/site/content/docs/getting-started/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Install `turbo` globally so you can conveniently run `turbo` commands in your te
</Tab>
<Tab value="pnpm">
```bash title="Terminal"
pnpm install turbo --global
pnpm add turbo --global
```

</Tab>
Expand Down
2 changes: 1 addition & 1 deletion docs/site/content/docs/getting-started/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ A global install of `turbo` brings flexibility and speed to your local workflows

<Tab value="pnpm">
```bash title="Terminal"
pnpm install turbo --global
pnpm add turbo --global
```

</Tab>
Expand Down
4 changes: 2 additions & 2 deletions docs/site/content/docs/guides/migrating-from-nx.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ Add Turborepo to the root `package.json` of the workspace.
<Tab value="pnpm">

```bash title="Terminal"
pnpm install turbo --save-dev --workspace-root
pnpm add turbo --save-dev --workspace-root
```

</Tab>
Expand Down Expand Up @@ -368,7 +368,7 @@ You can also optionally install `turbo` globally for added convenience when work
<Tab value="pnpm">

```bash title="Terminal"
pnpm install turbo --global
pnpm add turbo --global
```

</Tab>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Install `turbo` into your application:

<Tab value="pnpm">
```bash title="Terminal"
pnpm install turbo --save-dev
pnpm add turbo --save-dev
```

</Tab>
Expand Down
2 changes: 1 addition & 1 deletion docs/site/content/docs/guides/tools/jest.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Install `jest` into the packages where you plan on having test suites. For this
<Tab value="pnpm">

```bash title="Terminal"
pnpm install jest --save-dev --filter=@repo/ui --filter=web
pnpm add jest --save-dev --filter=@repo/ui --filter=web
```

</Tab>
Expand Down
4 changes: 2 additions & 2 deletions docs/site/content/docs/guides/tools/storybook.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Now, install your UI package into Storybook.
<Tab value="pnpm">

```bash title="Terminal"
pnpm install @repo/ui --filter=storybook
pnpm add @repo/ui --filter=storybook
```

</Tab>
Expand Down Expand Up @@ -330,7 +330,7 @@ You'll also need to install any Storybook packages required for writing stories.
<Tab value="pnpm">

```bash title="Terminal"
pnpm install @storybook/react --filter=@repo/ui --save-dev
pnpm add @storybook/react --filter=@repo/ui --save-dev
```

</Tab>
Expand Down
2 changes: 1 addition & 1 deletion docs/site/content/docs/guides/tools/tailwind.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ Install the packages you've created into your application.
<Tab value="pnpm">

```bash title="Terminal"
pnpm install @repo/ui @repo/tailwind-config --save-dev --filter=@repo/ui --filter=web
pnpm add @repo/ui @repo/tailwind-config --save-dev --filter=@repo/ui --filter=web
```

</Tab>
Expand Down
Loading