MacでPugを使う準備をする

Homebrew インストール

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

nodebrew インストール

brew install nodebrew

↓ここでつまづいた!

mkdir -p ~/.nodebrew/src

フォルダがなかったら自分で作っておかないといけない。

↓node.js のPATH を通す(~/.bash_profile などに)

export PATH=$PATH:$HOME/.nodebrew/current/bin

npm 自体のアップデート

npm install -g npm

Pug インストール

npm install pug-cli -g
pug /test/index.pug --watch --pretty

watch・・・htmlファイル リアルタイム生成

pretty・・・タグ整形

参考サイト