Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error #11911

Open
Dantechdevs opened this issue Mar 28, 2024 · 2 comments
Open

Getting error #11911

Dantechdevs opened this issue Mar 28, 2024 · 2 comments
Labels

Comments

@Dantechdevs
Copy link

php composer.phar install
I tried to install composer via brew per:

In usr/local/bin (which was not on Mavericks and I had to make it personally) I did.

brew tap josegonzalez/homebrew-php
brew install josegonzalez/php/composer
I can run php composer.phar, but when I do php composer.phar install, I get the error:

Composer could not find a composer.json file in /usr/local/bin To initialize a project, please create a composer.json file as described in the http://getcomposer.org/ "Getting Started" section`

@Seldaek Seldaek added the Support label Apr 3, 2024
@Seldaek
Copy link
Member

Seldaek commented Apr 3, 2024

You need to run composer in the directory where a composer.json is, so if you are in your project's directory just run composer as it is in /usr/local/bin it should be in your PATH and just work.

@Dantechdevs
Copy link
Author

@Seldaek thank you ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants