0

I'm following the zappa guide here: http://zappajs.github.io/zappajs/docs/crashcourse, but I can't seem to get coffee to work - on Mac OSX 10.9 - as demonstrated into the guide. If I type:

coffee cuppa.coffee

I get:

-bash: coffee: command not found

I installed zappa with the following command:

sudo npm install zappa -g

Now, it's likely this is a paths issue, but I can not determine where npm installed coffee to. Other SO questions suggest it's stored under /usr/local/share/npm/coffee but it's not. I can find the npm directory under /usr/local/bin/npm but coffee isn't there.

Any suggestions to setting it up so it works correctly?

James Jeffery
  • 12,093
  • 19
  • 74
  • 108

1 Answers1

1

You'll likely want to install CoffeeScript by itself:

sudo npm install coffee-script -g

This will give you the coffee command.

Evan Hahn
  • 12,147
  • 9
  • 41
  • 59
  • When I installed `zappa` it appears it installed the dependancy already though: npm http 304 https://registry.npmjs.org/coffee-script – James Jeffery Dec 26 '13 at 21:47
  • True; you could add `coffee` to your path inside of Zappa's `node_modules` directory. I'd recommend installing CoffeeScript independently, though. – Evan Hahn Dec 26 '13 at 21:48
  • 1
    Installed independently and it worked. I'll settle with this answer. Thank you. – James Jeffery Dec 26 '13 at 21:49