My MacOS Start Setup for Development

Install Homebrew and packages

Wed, 25 Jul 2018

Homebrew

brew Homebrew is a free and open-source software package management system that simplifies the installation of software on Apple’s macOS operating system.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

nvm

nvm Node Version Manager - Simple bash script to manage multiple active node.js versions

brew install nvm

mkdir ~/.nvm #create NVM's working directory

#add the following to ~/.bash_profil
export NVM_DIR="$HOME/.nvm" 
. "/usr/local/opt/nvm/nvm.sh" 

#install Node.js latest version
nvm install node
nvm use node

#install Node.js LTS version
nvm install --lts
nvm use --lts

npm

npm npm is the package manager for JavaScript and the world’s largest software registry. Discover packages of reusable code — and assemble them in powerful new ways.

brew install npm

Git

git Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

brew install git

Reference

  1. Homebrew Official Website
  2. Homebrew - Wikipedia
  3. nvm github Repository
  4. npm Official Website
  5. Git Official Website
Loading...
Samson Lam

Samson Lam Microsoft Student Partner | Programmer | Change Agent | Fintech Innovation Partner