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

Not woriking with node v12.22.1 #56

Closed
dubeyAditya opened this issue May 11, 2021 · 1 comment
Closed

Not woriking with node v12.22.1 #56

dubeyAditya opened this issue May 11, 2021 · 1 comment

Comments

@dubeyAditya
Copy link

Specifications

Failed to load script and throws this error
` zx https://medv.io/example-script.mjs
file:///home/dubey_aditya/.nvm/versions/node/v12.22.1/lib/node_modules/zx/zx.mjs:43
let ok = await scriptFromStdin()
^^^^^

SyntaxError: Unexpected reserved word
at Loader.moduleStrategy (internal/modules/esm/translators.js:140:18)
at async link (internal/modules/esm/module_job.js:42:21)
`

  • Version: 12.22.1
  • Platform: Ubuntu 21,04
@joshgrift
Copy link

My gut suggests that we need node 14.8+ https://nodejs.org/api/esm.html#esm_modules_ecmascript_modules

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

3 participants