Skip to content

Latest commit

 

History

History
249 lines (167 loc) · 3.93 KB

02-install-and-setup.md

File metadata and controls

249 lines (167 loc) · 3.93 KB

Install and Setup

General Setup and App Install on MacOS Catalina (10.15.7)

Terminal.app

Open up /Applications/Utilities/Terminal.app

Command Line Tools

Mac OS Command Line toolkit has a bunch of utilities, and compilers. All of these commands come out of the box for Linux.

Check Version

This check isn't that reliable.

xcode-select -p

Try one of the commands below on a fresh install of MacOS Catalina this should prompt the install of command line tools. if its not installed

git
make
GCC

Manual Install

#this might not work anymore
xcode-select --install

NOTE

You might get this error

Can’t install the software because it is not currently available from the Software Update server.

Download from Apple Developers Site

Sign in with your Apple ID and download from Apple's Developers site.

Homebrew

https://brew.sh

Installing Homebrew and CLI tool for installing applications.

It also prompts to install Command Line Tools if you don't have it installed.

Check version

brew --version

Install Command

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Useful Commands to know

brew update
brew upgrade
brew cleanup

#list brew
brew list
brew list --cask

Install Brew

https://brew.sh/analytics

Most Popular installs

brew install \git \wget
#browsers
brew cask install \google-chrome \firefox \opera

#apps
brew cask install \visual-studio-code \rectangle \figma


#OPTIONAL
#Other Text Editors
brew cask install \atom \sublime-text

#Other App if you want
brew cask install \slack \spotify \zoom \vlc \iterm2 \postman \postgres

Shell

Catalina comes with zsh as the default shell.

check version

zsh --version
which zsh
brew install zsh
chsh -s /bin/zsh

If prompted enter 0

Node.js, npm with NVM

Better to install node with nvm instead of homebrew. Allows us the flexibility to easily update node, have multiple version as well.

Install nvm

Allow you to manage your node version

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash

restart terminal

check version

nvm --version

Debug

if you're comand nvm isn't recognized try adding the code to your shell profile

we're using zsh so you would add it to.

nano ~/.zshrc
#.zshrc
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# This loads nvm

other shell profiles

  • ~/.bash_profile
  • ~/.profile
  • ~/.bashrc

Install Node

nvm install node
nvm use node

Check Node and NPM Version

node -v && npm -v

Update nvm

Later down the road if you want to update NVM

nvm install node --reinstall-packages-from=node

Change version

https://nodejs.org/en/download/releases/ Find node vesion

nvm install xx.xx
nvm use xx.xx

#list node version
nvm ls

And to set the default:

nvm alias default xx.xx

#list nvm
nvm alias default xx.xx

#check version
node -v && npm -v

Git

Version Control

Add Default User Info

git --version
git config --global user.name "Your Name"
git config --global user.email "[email protected]"

ssh

Create a SSH Key

ssh-keygen

save as /home/username/.ssh/id_rsa

Type in passphrase this will be extra password for security make sure you remember this or store it somewhere safe.