I'm trying to install Valet following an official Laravel documentation. So I installed Homebrew first by using:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"`
I can confirm it was installed by running which brew
which returns /opt/homebrew/bin/brew
.
Installed PHP 8.2 by running brew install php
.
PHP 8.2.8 (cli) (built: Jul 6 2023 10:57:44) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.8, Copyright (c) Zend Technologies
with Zend OPcache v8.2.8, Copyright (c), by Zend Technologies
Installed Composer by running the following:
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'e21205b207c3ff031906575712edab6f13eb0b361f2085f1f1237b7126d785e826a450292b6cfd1d64d92e6563bbde02') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
and then sudo mv composer.phar /usr/local/bin/composer
.
I can tell that the ~/.composer/vendor/bin
directory is definitely in my system's "PATH" by running echo $PATH
which returns:
/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/CyberArk EPM.app/Contents/Helpers:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/galopom/WebDev/galopom/node_modules/.bin:/Users/galopom/.composer/vendor/bin
After Composer has been installed, I installed Laravel Valet as a global Composer package:
composer global require laravel/valet
But when I run valet install
I get Valet requires Homebrew to be installed on your Mac.
.
Apple M1 Pro
, MacOS - 13.4.1 (22F82)
I'm literally spinning in circles, could anyone please help?!