Level 2
But this does not persist the PATH, only valid for current session
My goto install stopped working due to laravel installer requiring 7.3. This fixed it. This assumes a sparkly fresh WSL2 install. I used on 20.04
sudo apt update && sudo apt dist-upgrade -y
sudo apt install composer -y
sudo apt install software-properties-common && sudo add-apt-repository ppa:ondrej/php && sudo apt update
sudo apt install php7.4 -y
sudo apt install php7.4-zip php7.4-mbstring php7.4-xml -y
composer global require laravel/installer
cd .config/composer/vendor/bin
pwd
copy that path
export PATH="$HOME/.config/composer/vendor/bin:$PATH"
Please or to participate in this conversation.