Skip to content

Conversation

rick68
Copy link

@rick68 rick68 commented Jul 20, 2014

Hi,
I used LiveScript and CoffeeScript with XMLHttpRequest and they could not work, because they are not exectued by node.

https://github.com/gkz/LiveScript/blob/master/bin/lsc
https://github.com/jashkenas/coffeescript/blob/master/bin/coffee

You can see that they execute node via '/usr/bin/evn', so I do some change in your code for fix this problem.

Thanks & Regards.
Rick.

@driverdan
Copy link
Owner

Interesting problem. There must be a better solution to this though. Hardcoding a path (/usr/bin/env node) isn't scalable. What about when the node executable is named nodejs as it is when installed from Apt on Ubuntu?

@rick68
Copy link
Author

rick68 commented Jul 21, 2014

The hardcoding path in lsc and coffee script is standard method to find executable file node via /usr/bin/env (http://www.gnu.org/software/coreutils/). If the node executable is named nodejs, lsc and coffee will not be executed in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants