検索

ホームページ  >  に質問  >  本文

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日前569

全員に返信(1)返信します

  • 巴扎黑

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

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

    返事
    0
  • キャンセル返事