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: Unexpected token '.' #365

Closed
inhahe opened this issue May 20, 2024 · 2 comments
Closed

SyntaxError: Unexpected token '.' #365

inhahe opened this issue May 20, 2024 · 2 comments
Labels
bug Existing bug

Comments

@inhahe
Copy link

inhahe commented May 20, 2024

Bug description

Steps to reproduce

I just installed thumbsup and all its dependencies on a new Linux Mint VM. I tried to run thumbsup and I got this error:

usr/local/lib/node_modules/thumbsup/node_modules/ini/lib/ini.js:140
      duplicates[keyRaw] = (duplicates?.[keyRaw] || 0) + 1
                                       ^

SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/thumbsup/src/input/picasa.js:7:13)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

My node.js version is v12.22.9.

@inhahe inhahe added the bug Existing bug label May 20, 2024
@inhahe
Copy link
Author

inhahe commented May 20, 2024

Oh, I see that that wasn't the latest version of node. I don't know why it installed an old version, and even replied that it was the latest version when I tried to upgrade. I ended up having to install nvm and then use that to install node.

@rprieto
Copy link
Member

rprieto commented May 23, 2024

Hi, glad you solved the issue. Node v12 has been out of support for a few years. I agree it's very strange it was the default installation.

@rprieto rprieto closed this as completed May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Existing bug
Projects
None yet
Development

No branches or pull requests

2 participants