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 upon ai auth #31

Open
3rico opened this issue Jan 11, 2023 · 4 comments
Open

Error upon ai auth #31

3rico opened this issue Jan 11, 2023 · 4 comments

Comments

@3rico
Copy link

3rico commented Jan 11, 2023

I get the following error

`/usr/local/lib/node_modules/@abhagsain/ai-cli/node_modules/@oclif/core/lib/command.js:41
delete this.globalFlags?.json;
^

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. (/usr/local/lib/node_modules/@abhagsain/ai-cli/node_modules/@oclif/core/lib/index.js:6:19)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
`

@abhagsain
Copy link
Owner

Can you please share your OS, Node version, and AI-CLI version?

@heroes1412
Copy link

same here:
Ubuntu 20.04
root@cnf:# node -v
v10.19.0
root@cnf:
# npm -v
6.14.4

@wtanksleyjr
Copy link

Same here.

Ubuntu 22.04:

❯ node -v
v12.22.9
❯ npm -v
8.5.1

Ubuntu 20.04:

➜  npm -v
6.14.4
➜  node -v
v10.19.0

@Charlz91108112
Copy link

Hello @wtanksleyjr , @3rico, @heroes1412

I was able to identify the issue. The node version required is >=14.0.0.
So here is how I did:

  1. I installed initially then uninstalled it completely
  2. Later, I reinstalled and I go the warning that node version required is >=14.0.0
  3. I use the following Source to install the required version.

--> npm -v
6.14.18
--> node -v
v14.21.3

I hope this helps.

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

5 participants