PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, May 20, 2022

[FIXED] How to install Laravel Valet on Mac Mojave?

 May 20, 2022     composer-php, laravel-valet     No comments   

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)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing