From 1b748d435ca61d4ce532b8804d9bcfb16703effd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A8o=20Gauthier?= Date: Mon, 12 Jun 2023 09:43:27 +0200 Subject: [PATCH] docs: Fix code example with pnpm in the create-medusa-app page (#4284) * Update create-medusa-app.mdx * Change the command to start the dev command on the storefront --- docs/content/create-medusa-app.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/content/create-medusa-app.mdx b/docs/content/create-medusa-app.mdx index dc901413c6..11fd1ff3df 100644 --- a/docs/content/create-medusa-app.mdx +++ b/docs/content/create-medusa-app.mdx @@ -164,7 +164,7 @@ Then, run the following command to migrate the Medusa schema to your database: ```bash - pnpm @medusajs/medusa-cli@latest migrations run + pnpm dlx @medusajs/medusa-cli@latest migrations run ``` @@ -183,7 +183,7 @@ You can optionally seed your database with demo data by running the following co ```bash - pnpm @medusajs/medusa-cli@latest seed -f ./data/seed.json + pnpm dlx @medusajs/medusa-cli@latest seed -f ./data/seed.json ``` @@ -204,7 +204,7 @@ While in your `backend` directory, run the following command to start your Medus ```bash - pnpm @medusajs/medusa-cli@latest develop + pnpm dlx @medusajs/medusa-cli@latest develop ``` @@ -213,7 +213,7 @@ While in your `backend` directory, run the following command to start your Medus This will start your backend on `localhost:9000`. While your backend is running, you can also go to the `storefront` directory of your project and start the storefront. If you're using the Medusa Next.js storefront the following command starts it: ```bash npm2yarn -npm run develop +npm run dev ``` If you open your storefront now in your browser on `localhost:8000`, everything should be working as expected. If you're not seeing any products, you can run the `seed` command as instructed earlier or install the [Medusa admin plugin](./admin/quickstart.mdx) to start adding products.