valet: Unable to install Valet on fresh macOS install

Hi, I setup a new Mac running macOS 10.13.4 and I can’t finish Valet install.

capture d ecran 2018-04-09 a 10 47 54

Before running valet install I’ve do and check the following points:

  • Brew is up to date
  • PHP 7.1 installed via brew install php@7.1
  • ~/.composer/vendor/bin added to PATH (export PATH="$PATH:$HOME/.composer/vendor/bin")
  • Valet installed via composer global require laravel/valet

Any idea?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 24 (1 by maintainers)

Most upvoted comments

Run brew link php@7.1 --force --overwrite solved my problem!

this might be pretty obvious but maybe try install php manually yourself?

brew install php@7.1

then link it

brew link php@7.1 --force --overwrite

when you run php -v are you getting 7.1.14 or 7.1.16?

looks like surprisingly macOS has updated to 7.1.14 - if you’re getting that then its not being linked properly

I try again brew unlink php@7.2 && brew link --force --overwrite php@7.1 and valet install works.

So I think the main issue here is resolved, thanks for your help.

I removed all php71-*, deleted all old confs then ran brew link --force --ovewrrite php@7.1 and all is well again.

It doesn’t work: capture d ecran 2018-04-09 a 11 56 09