Valet not starting giving "Valet requires Brew to be installed on your Mac." message

Posted 3 years ago by umefarooq

Hi i want to try valet, my mac machine has brew, valet and php7 installed, when i try to start valet it give me the following message

Valet requires Brew to be installed on your Mac.

i search in valet repository for this message following code checking brew path

if (exec('which brew') != '/usr/local/bin/brew' && ! $inTestingEnvironment) {
    echo 'Valet requires Brew to be installed on your Mac.';
    exit(1);
}

in terminal run which brew command and i am getting following path

/usr/local/bin//brew

i don't understand why this double slash i appearing in path because of this in valet code path string is not matching.

code link

https://github.com/laravel/valet/blob/97f7ae2342be6365a91a657a902d0a95157c095e/cli/includes/compatibility.php

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.