aaa:nodeTest hank$ echo $PATH
/Users/hank/npm/lib/node_modules/bower/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin:/usr/local/bin/jamf:/usr/local/bini:/Users/hank/.node/bin:/usr/local/bin:/usr/local/bin:/Users/hank/npm/lib/node_modules:/Users/hank/npm/lib:/usr/local/bin:/usr/lib/node_modules/.bin
aaa:nodeTest hank$ sudo npm install -g supervisor
/Users/hank/npm/bin/node-supervisor -> /Users/hank/npm/lib/node_modules/supervisor/lib/cli-wrapper.js
/Users/hank/npm/bin/supervisor -> /Users/hank/npm/lib/node_modules/supervisor/lib/cli-wrapper.js supervisor@0.9.1 /Users/hank/npm/lib/node_modules/supervisor
aaa:nodeTest hank$ supervisor
-bash: supervisor: command not found
仔细看,/Users/hank/npm/bin 并没有在你的$PATH里