찾다

 >  Q&A  >  본문

node.js - npm install -g之后还是command not found

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
PHP中文网PHP中文网2781일 전572

모든 응답(1)나는 대답할 것이다

  • 巴扎黑

    巴扎黑2017-04-17 13:10:44

    仔细看,/Users/hank/npm/bin 并没有在你的$PATH里

    회신하다
    0
  • 취소회신하다