Published on

How to Set up M1 Pro Macbook Pro


How to Install homebrew

  1. Install homebrew on your terminal
$ /bin/bash -c "$(curl -fsSL"
  1. Set the path
$ echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/<yourname>/.zprofile
  1. Check brew state
$ brew doctor

How to Install Node with nodebrew

  1. Install nodebrew from homebrew
$ brew install nodebrew
  1. Setup nodebrew
$ nodebrew setup
  1. Set the path
$ echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> ~/.zshrc
$ source ~/.zshrc
  1. Check available versions for install
$ nodebrew ls-remote
  1. Install node
$ nodebrew install-binary v16.13.0
  1. Activation installed version
$ nodebrew use v16.13.0
  1. Check activated version
$ node -v

How to Install yarn

It's so easy....

$ brew install yarn

How to Install Git

  1. Install git from homebrew
$ brew install git
  1. Setup the path
$ echo 'export PATH="/opt/homebrew/bin:$PATH"' >> ~/.zshrc
$ source ~/.zshrc
  1. Check git version
$ git --version
git version 2.30.1 (Apple Git-130)

It was Done...!

Thank you for reading!!! Please follow my twitter account!!!