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

Error trying to install #1

Open
SomebodySysop opened this issue Jul 3, 2023 · 1 comment
Open

Error trying to install #1

SomebodySysop opened this issue Jul 3, 2023 · 1 comment

Comments

@SomebodySysop
Copy link

root@ASUSET2410-Ubuntu:/home/ron/workarea/openai/chatgpt-plugin-googlesearch# npx ts-node index.ts
/usr/local/lib/node_modules/npm/node_modules/nopt/lib/nopt-lib.js:64
const StringType = typeDefs.String?.type
^

SyntaxError: 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. (/usr/local/lib/node_modules/npm/node_modules/nopt/lib/nopt.js:1:13)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

Any suggestions?

@kevinamiri
Copy link
Owner

  • I simplified the app, and test it on Codespaces, the example is working now.
  • About the error you need to upgrade your Nodejs to a newer version of Node.js that supports optional chaining.

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