docs: add troubleshooting guide for pnpm installations (#13351)

This commit is contained in:
Shahed Nasser
2025-08-29 18:03:03 +03:00
committed by GitHub
parent f39ba53fd3
commit c603540562
7 changed files with 63 additions and 13 deletions

View File

@@ -0,0 +1,23 @@
If you use `pnpm` as a package manager in your Medusa application, you might face errors about missing packages. For example:
```bash
can't resolve @medusajs/dashboard
```
## Why This Error Occurred
Medusa doesn't officially support `pnpm` as a package manager, which may lead to unexpected errors, including issues with package resolution.
---
## How to Fix it
To resolve this error and other potential errors, consider switching to `yarn` as your package manager.
If you still want to use `pnpm`, you must manually install the following packages in your project:
```bash
pnpm add @medusajs/dashboard @medusajs/icons @meduasjs/types @medusajs/draft-order @medusajs/ui
```
Make sure to also update these packages whenever you update your Medusa application.

View File

@@ -0,0 +1,9 @@
import PnpmSection from "../_sections/common-installation-errors/pnpm.mdx"
export const metadata = {
title: `Errors with pnpm`,
}
# {metadata.title}
<PnpmSection />