I'm writing a Cakefile that defines a task called build where the following line appears:
coffee.stderr.on 'data', (data) ->
process.stderr.write.data.toString()
When I run the task with cake build, it throws a ReferenceError saying that the function toString is undefined.
I've tried repairing the Node installation, and re-installing CoffeeScript with npm.