Here is how I run my js code:
node --harmony ./data/app.js
Now I want to move to the CoffeeScript. So I try to run it like that:
coffee ./data/app.coffee
And it fails. How can I pass this --harmony
option?
Here is how I run my js code:
node --harmony ./data/app.js
Now I want to move to the CoffeeScript. So I try to run it like that:
coffee ./data/app.coffee
And it fails. How can I pass this --harmony
option?
To pass args through, you can use the --nodejs
argument:
coffee --nodejs --harmony ./data/app.coffee
--harmony
. So I think this option doesn't go to the node, but to the coffee, which doesn't recognize it... –
Floyfloyd © 2022 - 2024 — McMap. All rights reserved.
Error: AppJS requires Node is run with the --harmony command line flag
– Floyfloyd