Laravel valet linked php error

后端 未结 6 624
温柔的废话
温柔的废话 2021-01-17 19:07

I got an error.

$ valet install

[DomainException]                
Unable to determine linked PHP.  

install

\'which\' command returns:

6条回答
  •  感动是毒
    2021-01-17 19:47

    This happens when your brew php gets Updated.

    If you do brew install php this will work but will install php 7.2 by default.

    If you want php@7.1 you have to do brew install php@7.1 this will install php7.1 and now when you restart valet valet restart you might get an error. Unable to determine linked PHP.

    To make this work with php7.1 you have make brew link
    brew link php71

    you may have this error Warning: php@7.1 is keg-only and must be linked with

    to fix this brew link --force php71
    now valet should work on php7.1

提交回复
热议问题