* docs(refactoring): configured eslint and typescript (#3511) * docs: configured eslint and typescript * fixed yarn.lock * docs(refactoring): migrate components directory to typescript (#3517) * docs: migrate components directory to typescript * removed vscode settings * fix following merge * docs: refactored QueryNote component (#3576) * docs: refactored first batch of theme components (#3579) * docs: refactored second batch of theme components (#3580) * added missing badge styles * fix after merge * docs(refactoring): migrated remaining component to TypeScript (#3770) * docs(refactoring): configured eslint and typescript (#3511) * docs: configured eslint and typescript * fixed yarn.lock * docs(refactoring): migrate components directory to typescript (#3517) * docs: migrate components directory to typescript * removed vscode settings * fix following merge * docs: refactored QueryNote component (#3576) * docs: refactored first batch of theme components (#3579) * docs: refactored second batch of theme components (#3580) * added missing badge styles * docs: refactoring second batch of theme components * fix after merge * refactored icons and other components * docs: refactored all components * docs(refactoring): set up and configured Tailwind Css (#3841) * docs: added tailwind config * docs: added more tailwind configurations * add includes option * added more tailwind configurations * fix to configurations * docs(refactoring): use tailwind css (#4134) * docs: added tailwind config * docs: added more tailwind configurations * add includes option * added more tailwind configurations * fix to configurations * docs(refactoring): refactored all styles to use tailwind css (#4132) * refactored Badge component to use tailwind css * refactored Bordered component to use tailwind css * updated to latest docusaurus * refactored BorderedIcon component to use tailwind css * refactored Feedback component to use tailwind css * refactored icons and footersociallinks to tailwind css * start refactoring of large card * refactored large card styling * refactored until admonitions * refactored until codeblock * refactored until Tabs * refactored Tabs (without testing * finished refactoring styles to tailwind css * upgraded to version 2.4.1 * general fixes * adjusted eslint configurations * fixed ignore files * fixes to large card * fix search styling * fix npx command * updated tabs to use isCodeTabs prop * fixed os tabs * removed os-tabs class in favor of general styling * improvements to buttons * fix for searchbar * fixed redocly download button * chore: added eslint code action (#4135) * small change in commerce modules page
65 lines
1.7 KiB
Plaintext
65 lines
1.7 KiB
Plaintext
import Tabs from '@theme/Tabs';
|
||
import TabItem from '@theme/TabItem';
|
||
|
||
# Resolve Errors Installing Medusa CLI
|
||
|
||
In this document, you can find solutions to some common problems that occur when installing Medusa’s CLI Tool.
|
||
|
||
## NPM Error: EACCES Permissions Errors
|
||
|
||
If you install the Medusa CLI tool with NPM and get a permission error, NPM proposes as a solution either re-installing NPM with a node version manager (nvm), or manually setting npm’s default directory.
|
||
|
||
You can check out more information in [NPM’s documentation](https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally).
|
||
|
||
---
|
||
|
||
<!-- vale off -->
|
||
|
||
## Powershell Error: command not found: medusa
|
||
|
||
<!-- vale on -->
|
||
|
||
If you're using Powershell and you installed the CLI tool, but when you try to use it you get the error:
|
||
|
||
```bash noReport
|
||
command not found: medusa
|
||
```
|
||
|
||
Try closing your Powershell window and opening a new one.
|
||
|
||
---
|
||
|
||
<!-- vale off -->
|
||
|
||
## Yarn Error: command not found: medusa
|
||
|
||
<!-- vale on -->
|
||
|
||
If you install the Medusa CLI tool with Yarn, then try to use the CLI tool but get the error:
|
||
|
||
```bash noReport
|
||
command not found: medusa
|
||
```
|
||
|
||
You have to add Yarn’s install location to the PATH variable:
|
||
|
||
<Tabs groupId="operating-systems" isCodeTabs={true}>
|
||
<TabItem value="unix" label="MacOS / Linux" default>
|
||
|
||
```bash
|
||
export PATH="$(yarn global bin):$PATH"
|
||
```
|
||
|
||
</TabItem>
|
||
<TabItem value="windows" label="Windows">
|
||
|
||
```bash
|
||
# MAKE SURE TO INCLUDE %path%
|
||
setx path "%path%;c:\users\YOURUSERNAME\appdata\local\yarn\bin"
|
||
# YOURUSERNAME is your account username
|
||
```
|
||
|
||
</TabItem>
|
||
</Tabs>
|
||
|
||
You can learn more in [Yarn’s documentation](https://classic.yarnpkg.com/en/docs/cli/global#adding-the-install-location-to-your-path). |