From edcf10eea1e300ca42e601900a3c4ad97578575a Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 3 Apr 2024 20:35:49 +0100 Subject: [PATCH] docs: use new `nuxi module add` command in installation (#53) --- README.md | 2 +- .../1.docs/1.getting-started/1.setup.md | 19 +++---------------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index b648498..a95baab 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ ## Installation ```bash -pnpm add nuxt-mongoose +npx nuxi@latest module add nuxt-mongoose ``` ## Usage diff --git a/docs/content/1.docs/1.getting-started/1.setup.md b/docs/content/1.docs/1.getting-started/1.setup.md index e2d8f05..056914d 100644 --- a/docs/content/1.docs/1.getting-started/1.setup.md +++ b/docs/content/1.docs/1.getting-started/1.setup.md @@ -5,22 +5,9 @@ A Nuxt module for simplifying the use of Mongoose in your project. ## Installation 1. Install `nuxt-mongoose` to your dependencies. - -::code-group - - ```bash [pnpm] - pnpm add nuxt-mongoose -D - ``` - - ```bash [npm] - npm install nuxt-mongoose -D - ``` - - ```bash [yarn] - yarn add nuxt-mongoose -D - ``` - -:: +```bash +npx nuxi@latest module add nuxt-mongoose +``` 2. Add `nuxt-mongoose` to the `modules` section of your `nuxt.config` file.