Install Git, PHP, NVM, Yarn and Composer with Homebrew

Homebrew Installation: https://brew.sh

Git Installation:

brew install gitCode language: Bash (bash)

PHP Installation:

brew unlink php@x.x # If you already have a version installed, remove it first
brew install php@7.4 # The new version
php -vCode language: Bash (bash)

NVM Installation:

brew install nvmCode language: Bash (bash)

Then check the docs here: https://formulae.brew.sh/formula/nvm

Yarn Installation:

brew unlink yarn@x.xx.x # If you already have a version installed, remove it first
brew extract --version 1.22.18 yarn homebrew/cask # The new version
brew install yarn@1.22.18
yarn -vCode language: Bash (bash)

Composer Installation:

brew unlink composer@x.xx.x # If you already have a version installed, remove it first
brew extract --version 2.1 composer homebrew/cask # The new version
brew install composer@2.1Code language: Bash (bash)

Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.