Why can’t I use jade command when I have jade installed globally?

  node.js, question

I’ll install jade globally first.

taolinweideMacBook-Pro:practice_jade Vagor$ sudo npm install -g jade
 Password:
 /usr/local/Cellar/node/5.2.0/bin/jade -> /usr/local/Cellar/node/5.2.0/lib/node_modules/jade/bin/jade.js
 /usr/local/Cellar/node/5.2.0/lib
 └── jade@1.11.0

You still can’t use jade after that? Why?

taolinweideMacBook-Pro:practice_jade Vagor$ jade  index.html
 
 -bash: jade: command not found

Because it is not in the PATH environment variable, you installed node with brew, so you need to manually link to /usr/local/bin again