Skip to content

Commit

Permalink
add troubleshooting step about composer vendor/bin paths in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
HelgeSverre committed Aug 17, 2023
1 parent 593c2f5 commit d67eaf4
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ composer build
- what body format to use by default or fallback on
- ignored parameters,
- how to handle Pagination
- if JSON bodies with null values should be removed
- if JSON bodies with null values should be removed
- If you want resource classes or not
- failure handling (AlwaysThrowOnErrors, custom exception classes,
or [custom method](https://docs.saloon.dev/the-basics/handling-failures#customising-when-saloon-thinks-a-request-has-failed))
Expand Down Expand Up @@ -485,6 +485,34 @@ With a comprehensive suite of features such as day sheets, checklists, reporting
simplifies event management. Professionals in the live event industry trust Crescat to streamline their workflows,
reducing the need for multiple tools and outdated spreadsheets.

## Troubleshooting:

### Fixing `command not found` errors

You most likely don't have the composer `vendor/bin` folder in your `$PATH`

```shell
# Default config file paths
# Zsh: ~/.zshrc
# Bash: ~/.bashrc or ~/.bash_profile
# Fish: ~/.config/fish/config.fish

# Replace 'YOUR_USERNAME' with your actual username
# Example: '/Users/john/.composer/vendor/bin'

# Zsh
echo 'export PATH="/Users/YOUR_USERNAME/.composer/vendor/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc

# Bash
echo 'export PATH="/Users/YOUR_USERNAME/.composer/vendor/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

# Fish
echo 'set -gx PATH "/Users/YOUR_USERNAME/.composer/vendor/bin" $PATH' >> ~/.config/fish/config.fish
source ~/.config/fish/config.fish
```

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

0 comments on commit d67eaf4

Please sign in to comment.