docs: added general troubleshooting error (#4625)

This commit is contained in:
Shahed Nasser
2023-07-28 11:42:06 +03:00
committed by GitHub
parent 75f2f9ad62
commit 5d71a8d26f
4 changed files with 33 additions and 3 deletions

View File

@@ -0,0 +1,31 @@
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
As a last resort to resolve your issue, please try to clear your `npx` cache, as it could hold a cached version of `create-medusa-app` with errors.
<Tabs groupId="operating-systems" queryString="os">
<TabItem value="unix" label="MacOS and Linux" default>
Run the following command:
```bash
rm -rf "$(npm config get cache)/_npx"
```
Try running the `create-medusa-app` command again.
</TabItem>
<TabItem value="windows" label="Windows">
First, find the cache directory with the following command:
```bash
npm config get cache
```
The npx cache should be in the directory `<NPM_CACHE>/_npx`, where `<NPM_CACHE>` is the cache directory returned by the previous command. Delete that directory and try running the `create-medusa-app` command again.
</TabItem>
</Tabs>
If your issue persists, please try to search through [our GitHub issues](https://github.com/medusajs/medusa/issues) to see if there's a solution for your issue. If not, please [create an issue on GitHub](https://github.com/medusajs/medusa/issues/new?assignees=olivermrbl&labels=status:+needs+triaging,+type:+bug&template=bug_report.md&title=) and our team will help you resolve it soon.