Skip to content

Commit 0d9ae7a

Browse files
s0h311phoenix-ru
andauthored
docs: update installation.md (#955)
* docs: update installation.md, @sidebase/nuxt-auth should be installed as regular dep @sidebase/nuxt-auth should be installed as a regular dependency instead of a dev dependency. Also added additional scripts for yarn and pnpm * revert to dev dep * Update docs/guide/getting-started/installation.md * Update docs/guide/getting-started/installation.md --------- Co-authored-by: Marsel Shaikhin <[email protected]>
1 parent 985c497 commit 0d9ae7a

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

docs/guide/getting-started/installation.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,22 @@
22

33
You can install NuxtAuth using nuxi:
44

5-
```bash
6-
npx nuxi@latest module add sidebase-auth
5+
::: code-group
6+
7+
```bash [npm]
8+
npx nuxi module add sidebase-auth
9+
```
10+
11+
```bash [pnpm]
12+
pnpm exec nuxi module add sidebase-auth
713
```
814

15+
```bash [yarn]
16+
yarn dlx nuxi module add sidebase-auth
17+
```
18+
19+
:::
20+
921
::: details Manual installation
1022

1123
::: code-group
@@ -19,7 +31,7 @@ pnpm i -D @sidebase/nuxt-auth
1931
```
2032

2133
```bash [yarn]
22-
yarn add --dev @sidebase/nuxt-auth
34+
yarn add -D @sidebase/nuxt-auth
2335
```
2436

2537
:::
@@ -31,7 +43,7 @@ Add NuxtAuth to your `nuxt.config`:
3143
```ts [nuxt.config.ts]
3244
export default defineNuxtConfig({
3345
modules: [
34-
'@sidebase/nuxt-auth',
46+
'@sidebase/nuxt-auth'
3547
],
3648
})
3749
```

0 commit comments

Comments
 (0)