tvcl icon indicating copy to clipboard operation
tvcl copied to clipboard

Error using tvcl

Open Qu4tro opened this issue 8 years ago • 5 comments

/usr/bin/env: ‘node --harmony’: No such file or directory

On ArchLinux x64 install.

Qu4tro avatar Nov 29 '16 19:11 Qu4tro

A quick hack fix is to change the top line from #!/usr/bin/env node --harmony to #!/usr/bin/node --harmony

cwoac avatar Jan 03 '17 10:01 cwoac

Thank you @cwoac. Any idea how to also leave it runnable on mac os x? there's no /usr/bin/node there

hiquest avatar Jan 03 '17 18:01 hiquest

Thanks @cwoac . Works fine, now.

Qu4tro avatar Jan 04 '17 05:01 Qu4tro

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 avatar Jan 04 '17 10:01 cwoac

@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)

hiquest avatar Jan 09 '17 11:01 hiquest