diff --git a/docs/content/create-medusa-app.mdx b/docs/content/create-medusa-app.mdx index 1fe9b900f2..776f820f31 100644 --- a/docs/content/create-medusa-app.mdx +++ b/docs/content/create-medusa-app.mdx @@ -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' diff --git a/docs/content/troubleshooting/create-medusa-app-errors.mdx b/docs/content/troubleshooting/create-medusa-app-errors.mdx index de128206e8..bbabf3f99c 100644 --- a/docs/content/troubleshooting/create-medusa-app-errors.mdx +++ b/docs/content/troubleshooting/create-medusa-app-errors.mdx @@ -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 diff --git a/docs/content/troubleshooting/create-medusa-app-errors/_other-errors.md b/docs/content/troubleshooting/create-medusa-app-errors/_other-errors.md deleted file mode 100644 index e29896172e..0000000000 --- a/docs/content/troubleshooting/create-medusa-app-errors/_other-errors.md +++ /dev/null @@ -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. diff --git a/docs/content/troubleshooting/create-medusa-app-errors/_other-errors.mdx b/docs/content/troubleshooting/create-medusa-app-errors/_other-errors.mdx new file mode 100644 index 0000000000..c4fc071e66 --- /dev/null +++ b/docs/content/troubleshooting/create-medusa-app-errors/_other-errors.mdx @@ -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. + + + + +Run the following command: + +```bash +rm -rf "$(npm config get cache)/_npx" +``` + +Try running the `create-medusa-app` command again. + + + + +First, find the cache directory with the following command: + +```bash +npm config get cache +``` + +The npx cache should be in the directory `/_npx`, where `` is the cache directory returned by the previous command. Delete that directory and try running the `create-medusa-app` command again. + + + + +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.