Trying to run coffescript with nodejs

Hello.
I'm not sure is it possible at all, but my thought was to write some coffescript, than to compile it and run with node.
I did what I thought configuratiob should be (see screenshot), but result is the same whatever I did:

/usr/local/bin/coffee -c /Users/soswow/Work/NodeJSHeroku/sample.coffee

env: node: No such file or directory


Process finished with exit code 127



Attachment(s):
config.jpg
0
3 comments
Avatar
Permanently deleted user

Until than I just ran in command line

coffee -o ./out -cw ./src

And Run made normal run configuration for compiled .js files.

0
Avatar
Permanently deleted user

Ok. I finally got it. I added PATH=/usr/local/bin explicitly into configuration field.
Also I put ./src into "Path to Node App JS File:", and take away last part from "CoffeeScript parameters:" -o ./out -cw
Now it works well starting with:

/usr/local/bin/coffee -o ./out -cw ./src



Attachment(s):
success.jpg
0

Please sign in to leave a comment.