Issue
I'm trying to install Laravel Valet on my system using Homebrew. I'm on the step where I'm installing Composer. I'm trying to install it globally.
After installing it says:
Composer (version 2.0.12) successfully installed to: /Users/ryan/composer.phar
But when I try to check the version using composer -v
, it says:
Could not open input file: /usr/local/bin/composer.phar
.
Why is it looking there? Also, this is what I have in my PATH's file:
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
~/.composer/vendor/bin
I think it's a PATH issue, but I'm not sure. Thank you.
Solution
I just moved the composer.phar and composer.json files to this location:
/usr/local/bin/
. That solved this issue for me.
Answered By - Ryan Sacks Answer Checked By - David Goodson (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.