GithubHelp home page GithubHelp logo

Comments (5)

Lyrillind avatar Lyrillind commented on May 4, 2024 6

No, look, it literally is not "same here". zx requires node 14+ (#8), so having a node 14 report this problem is totally a different issue.

And I really feel the need to yell about this "actual behavior" report. Put that into a code block and show the name of the error next time, please.

There's NO node requirement in README, how can I know it requires node 14+?

And, in my case, the error message is the same as this issue, how can I know it's different issue?

Full error message here:

file:///Users/xxx/.nvm/versions/node/v14.2.0/lib/node_modules/zx/zx.mjs:43
    let ok = await scriptFromStdin()
             ^^^^^

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

from zx.

Artoria2e5 avatar Artoria2e5 commented on May 4, 2024 1

No, look, it literally is not "same here". zx requires node 14+ (#8), so having a node 14 report this problem is totally a different issue.

And I really feel the need to yell about this "actual behavior" report. Put that into a code block and show the name of the error next time, please.

from zx.

Lyrillind avatar Lyrillind commented on May 4, 2024

same here

node: 14.2.0

macOS: Big Sur v11.2.3

from zx.

ZQ-jhon avatar ZQ-jhon commented on May 4, 2024

Put that into a code block and show the name of the error next time, please.

Resolved! thanks.

from zx.

hehehai avatar hehehai commented on May 4, 2024

No, look, it literally is not "same here". zx requires node 14+ (#8), so having a node 14 report this problem is totally a different issue.
And I really feel the need to yell about this "actual behavior" report. Put that into a code block and show the name of the error next time, please.

There's NO node requirement in README, how can I know it requires node 14+?

And, in my case, the error message is the same as this issue, how can I know it's different issue?

Full error message here:

file:///Users/xxx/.nvm/versions/node/v14.2.0/lib/node_modules/zx/zx.mjs:43
    let ok = await scriptFromStdin()
             ^^^^^

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

nodejs version problem

nodejs/node#33474

from zx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.