I am try spacemacs. It can correctly recognise a coffee script and start coffeescript mode. However when I try to run coffee REPL, it shows this error:

enter image description here

How can I fix it?

  • Do you have the coffee program installed and is it in your PATH? If so, you might simply be hitting the old problem of env-vars (i.e. your Emacs did not inherit the PATH config that you set in your shell config, because it was not started from a shell)?
    – Stefan
    Jul 4, 2017 at 13:06

2 Answers 2


You need first to install the coffee executable.

From here, you can install it with:

npm install -g coffeescript

I use

  brew install coffeescript

to install a coffee script runtime.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.