Skip to content

Instantly share code, notes, and snippets.

@lirenyeo
Created July 8, 2018 07:37
Show Gist options
  • Save lirenyeo/4b149b1255328432cbc494fd7c51a45a to your computer and use it in GitHub Desktop.
Save lirenyeo/4b149b1255328432cbc494fd7c51a45a to your computer and use it in GitHub Desktop.
Stuffs

homebrew

  • Software Installer for mac
  • Install from brew.sh
  • Always brew update && brew upgrade
  • It looks for a formula (software) you want to install, grab the installation script from repo, then execute the installation
    • If the formula is from homebrew-core repo, that means the app you want to install is actively maintained by the core team
    • Else, you will need to brew tap <repo-name> before you brew install <package-name>

Node JS

  • Use Node Version Manager (NVM): brew install nvm
  • nvm install 8.11.3 or whatever version number

NPM

  • npm (node package manager) is itself a node package. Therefore it is available after you install Node. You can update npm by doing npm i -g npm.
  • npm i -g <node package> installs a package globally
  • npm i <node package> installs a package in current folder with the existence of package.json

rbenv

  • brew install rbenv
  • rbenv install <ruby version>
  • rbenv global <ruby version>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment