tvcl
tvcl copied to clipboard
Error using tvcl
/usr/bin/env: ‘node --harmony’: No such file or directory
On ArchLinux x64 install.
A quick hack fix is to change the top line from #!/usr/bin/env node --harmony
to #!/usr/bin/node --harmony
Thank you @cwoac. Any idea how to also leave it runnable on mac os x? there's no /usr/bin/node
there
Thanks @cwoac . Works fine, now.
So, the problem is that env does not officially support passing parameters (so on arch, it's looking for a program called 'node --harmony').
From a bit of digging, it seems that modern node versions support most of ecma6 out of the box and you could just drop the --harmony flag - I've done a quick test and that also seems to work for me.
If you want to support older versions, this page seems pretty useful, although do note that the funky abuse of : in the hash bang trick appears to not work anymore (at least on my test machine.
@cwoac @Qu4tro I decided to remove the harmony flag for now. So it's going to break on older versions of Node (not sure exactly what version is good to go though)