search

Home  >  Q&A  >  body text

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中文网2784 days ago577

reply all(1)I'll reply

  • 巴扎黑

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

    Look carefully, /Users/hank/npm/bin is not in your $PATH

    reply
    0
  • Cancelreply