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

not sure if bug or user error.. #1

Open
DetlefDmann opened this issue Jan 29, 2021 · 1 comment
Open

not sure if bug or user error.. #1

DetlefDmann opened this issue Jan 29, 2021 · 1 comment

Comments

@DetlefDmann
Copy link

DetlefDmann commented Jan 29, 2021

Hello, I get an error when I try to run node app.js in the terminal:
I am on Ubuntu 20.04.2 LTS.

EDIT: this was caused by an older version of node.js on the Ubuntu Software store.

/local_api/node_modules/@small-tech/jsdb/lib/JSDB.js:30
  static #isBeingInstantiatedByFactoryMethod = false
         ^

SyntaxError: Invalid or unexpected token
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/XXXXX/Public/JsonboxReplacer/local_api/node_modules/@small-tech/jsdb/index.js:36:18)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

@nielsbom
Copy link
Contributor

@DetlefDmann Updating your node installation should help.

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

2 participants