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

SyntaxError: Invalid or unexpected token "??" #2902

Closed
TrevorKMDay opened this issue Sep 22, 2023 · 3 comments
Closed

SyntaxError: Invalid or unexpected token "??" #2902

TrevorKMDay opened this issue Sep 22, 2023 · 3 comments
Labels

Comments

@TrevorKMDay
Copy link

TrevorKMDay commented Sep 22, 2023

What went wrong?

I have tried on my compute cluster and my local machine to install @openneuro/[email protected] through npm. But trying to use openneuro gives me the error

...\npm\node_modules\@openneuro\cli\node_modules\bids-validator\dist\commonjs\index.js:32632
        useFipsEndpoint: options2.useFipsEndpoint ?? false,
                                                   ^

SyntaxError: Invalid or unexpected token
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10

I am not familiar enough with node/js to go much farther on my own.

Expected behavior

Expected commands to work once installed.

How to reproduce

  1. On Node.js v18.8.0
  2. npm install @openneuro/cli (same error with -g flag or without locally)
  3. openneuro login e.g.`

Desktop

  • Device: login node/Windows computer
  • OS: CentOS 7/Windows 11

Phone

No response

Additional information

No response

@nellh
Copy link
Contributor

nellh commented Sep 25, 2023

Thanks for the bug report. Can you try the older 4.20.0-alpha.2 npm release? This should work around this issue for the time being.

@TrevorKMDay
Copy link
Author

TrevorKMDay commented Sep 25, 2023 via email

@nellh
Copy link
Contributor

nellh commented Sep 28, 2023

A fix for this was release in 4.20.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants