From: Mohamed Tammam <51543900+MrMohamedAbdallah@users.noreply.github.com> Date: Mon, 21 Apr 2025 06:23:09 +0000 (+0200) Subject: docs: split installation commands (#2975) X-Git-Tag: @pinia/nuxt@0.11.1~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=98c6419c12ebd133b9b535360f071290053494e1;p=thirdparty%2Fvuejs%2Fpinia.git 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 --- diff --git a/packages/docs/getting-started.md b/packages/docs/getting-started.md index ced36f14..57566cf6 100644 --- a/packages/docs/getting-started.md +++ b/packages/docs/getting-started.md @@ -7,12 +7,27 @@ Install `pinia` with your favorite package manager: -```bash -yarn add pinia -# or with npm + +::: code-group + +```bash [npm] npm install pinia ``` +```bash [yarn] +yarn add pinia +``` + +```bash [pnpm] +pnpm add pinia +``` + +```bash [bun] +bun add pinia +``` + +::: + :::tip 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). :::