Coffee not working on Zappa install (Mac OSX 10.9)

101 views Asked by At

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?

1

There are 1 answers

3
Evan Hahn On BEST ANSWER

You'll likely want to install CoffeeScript by itself:

sudo npm install coffee-script -g

This will give you the coffee command.