Node - Postgres - Vue MacOS Dev setup - 2021
By kerxon · · 1 min read
iTerm2
https://osxdaily.com/2018/12/29/use-zsh-default-terminal-mac-os-x/
Manually set some sane keybindings:
https://www.suevalov.com/blog/terminal-tips
Homebrew
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Zsh (instead of bash if you prefer)
$ touch ~/.zshrcFix file permissions for warning:
zsh compinit: insecure directories, run compaudit for list.
Ignore insecure directories and continue [y] or abort compinit [n]? `
https://stackoverflow.com/questions/13762280/zsh-compinit-insecure-directories/22753363#22753363
Solution: Turn off that group-writable permission!:
$ chmod g-w /usr/local/share/zsh
$ chmod g-w /usr/local/share/zsh/site-functions
Node
Install nvm + node
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.0/install.sh | bash$ nvm install 14$ nvm install 10
Ensure NVM is loading with zsh (for zsh users):
#Load NVM [[ -s $HOME/.nvm/nvm.sh ]] && . $HOME/.nvm/nvm.shTest install
$ nvm -v && node -v 0.37.0 v10.23.3Set default node version:
$ nvm alias default v14.15.5
PostgreSQL
Follow installer: https://www.postgresql.org/download/macosx/
Install with homebrew:
$ brew install postgresql
Start background service at login
brew services start postgresql
Vue
npm install -g @vue/cli