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

[🐛]Better error message for older Node versions #16

Open
rustymagnet3000 opened this issue Apr 13, 2022 · 0 comments
Open

[🐛]Better error message for older Node versions #16

rustymagnet3000 opened this issue Apr 13, 2022 · 0 comments

Comments

@rustymagnet3000
Copy link

  • node -v: 12.16.2
  • npm -v: 8.4.0
  • OS: macOS
  • Command run: node dist/index.js --token=$SNYK_TOKEN --group-id=$SNYK_GROUP

Error

SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:1070:16)
    at Module._compile (internal/modules/cjs/loader.js:1120:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
    at internal/main/run_main_module.js:18:47

Upgrading Node ( to version 17.7.2) and NPM fixed this. Now when I run node dist/index.js I see the CLI options.

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