因为 Node.js 是通过 Homebrew 安装的,npm 安装模块后无法运行,我是使用 zsh,所以要在 .zshrc 中添加:
export PATH=/usr/local/share/npm/bin:$PATH