Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the CLI doesn't work on some Linuxes #28

Open
tomgp opened this issue Feb 26, 2021 · 0 comments
Open

the CLI doesn't work on some Linuxes #28

tomgp opened this issue Feb 26, 2021 · 0 comments

Comments

@tomgp
Copy link
Contributor

tomgp commented Feb 26, 2021

As it stands the shebang at the start of supply-cmd.js #!/usr/bin/env node --experimental-modules doesn't work on some types on Linux. This is because the whole thing is taken as a single command i.e. the --experimental-modules flag is considered as part of the command name not a flag.

--experimental-modules flag is necessary as we aim to support Node 12+. At Node 12 ES modules are not supported without the flag.

Suggestions:
Maybe a bash script that executes the command with the flag?
relevant Stack Overflow question https://stackoverflow.com/questions/48179714/how-can-an-es6-module-be-run-as-a-script-in-node

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

No branches or pull requests

1 participant