我安装了node,npm和coffee脚本,当我尝试运行coffee命令时,我得到“-bash:coffee:command not found”
http://cl.ly/image/1Z2t1U1O1I0z
我不确定$ PATH是否错误,所有谷歌搜索结果都表明我的问题。很明显我是新手,我有点过火但是我试着添加了每一条路,但是我给了我:
$path = /usr/local/share/npm/bin/coffee:/usr/local/share/npm/bin/cake:/usr/local/share/npm/lib/node_modules/coffee-script/bin/cake:/usr/local/share/npm/lib/node_modules/coffee-script/bin/coffee:node_modules/coffee-script:/usr/local/share/npm/lib/node_modules/coffee-script:/Users/asmith:/usr/local/bin/node:/usr/local/bin/npm:~/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
人类可读:
任何帮助都会很棒!
答案 0 :(得分:6)
是的 - 这是路径问题。
您实际需要的路径可能只是/usr/local/share/npm/bin
您不需要添加可执行文件本身的路径,您需要添加它们所在目录的路径。