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 (again -#2902?) #3069

Closed
celstark opened this issue May 30, 2024 · 3 comments · Fixed by #3074
Closed

SyntaxError: Invalid or unexpected token (again -#2902?) #3069

celstark opened this issue May 30, 2024 · 3 comments · Fixed by #3074
Assignees
Labels

Comments

@celstark
Copy link

celstark commented May 30, 2024

What went wrong?

Trying to run openneuro login yields the following error:

/usr/lib/node_modules/@openneuro/cli/node_modules/bids-validator/dist/commonjs/index.js:20270
        useFipsEndpoint: options2.useFipsEndpoint ?? false,
                                                   ^

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

Node.js v20.14.0

Expected behavior

I expect it to prompt me for the login info

How to reproduce

  1. Install fresh npm and node.js
  2. Install fresh @openneuro-cli
  3. Type openneuro login or openneuro --help

Desktop

  • OS:
  • Browser:
  • Version:

Phone

System: Zorin OS 17 (Ubuntu jammy based)
Code version: @openneuro/[email protected]
Node.js version: 20.14.0 (also tried 22)

Additional information

xref #2902

@celstark celstark added the bug label May 30, 2024
@effigies
Copy link
Contributor

effigies commented Jun 3, 2024

The last fix #2905 was to roll back the validator to 1.10.0.

@nellh
Copy link
Contributor

nellh commented Jun 3, 2024

Thanks for reporting this issue, it should be fixed in @openneuro/cli version 4.24.2. Please let us know if you're still having issues.

@celstark
Copy link
Author

celstark commented Jun 3, 2024

Working!

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

Successfully merging a pull request may close this issue.

3 participants