Skip to content

Commit 98c6419

Browse files
docs: split installation commands (#2975)
* Split installation commands * chore: using code group component for installation command * chore: add pnmp and bun install commands * Update packages/docs/getting-started.md --------- Co-authored-by: Eduardo San Martin Morote <[email protected]>
1 parent 39b8937 commit 98c6419

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

packages/docs/getting-started.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,27 @@
77

88
Install `pinia` with your favorite package manager:
99

10-
```bash
11-
yarn add pinia
12-
# or with npm
10+
11+
::: code-group
12+
13+
```bash [npm]
1314
npm install pinia
1415
```
1516

17+
```bash [yarn]
18+
yarn add pinia
19+
```
20+
21+
```bash [pnpm]
22+
pnpm add pinia
23+
```
24+
25+
```bash [bun]
26+
bun add pinia
27+
```
28+
29+
:::
30+
1631
:::tip
1732
If your app is using Vue <2.7, you also need to install the composition api: `@vue/composition-api`. If you are using Nuxt, you should follow [these instructions](/ssr/nuxt.md).
1833
:::

0 commit comments

Comments
 (0)