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

@@ -11,7 +11,7 @@ import DocCardList from '@theme/DocCardList';
import Icons from '@theme/Icon';
import Troubleshooting from '@site/src/components/Troubleshooting'
import TypeErrorSection from "./troubleshooting/create-medusa-app-errors/_typeerror.md"
import OtherErrorsSection from "./troubleshooting/create-medusa-app-errors/_other-errors.md"
import OtherErrorsSection from "./troubleshooting/create-medusa-app-errors/_other-errors.mdx"
import EagainError from "./troubleshooting/create-medusa-app-errors/_eagain-error.md"
import ConnectionErrorSection from './troubleshooting/database-errors/_connection-error.md'
import FreshInstallationSection from './troubleshooting/awilix-resolution-error/_fresh-installation.md'

View File

@@ -3,7 +3,7 @@ title: 'Common Create-React-App Errors'
---
import TypeError from './create-medusa-app-errors/_typeerror.md'
import OtherErrors from './create-medusa-app-errors/_other-errors.md'
import OtherErrors from './create-medusa-app-errors/_other-errors.mdx'
## TypeError: cmd is not a function

View File

@@ -1 +0,0 @@
If you ran into another error, 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.

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.