Error upon ai auth
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.
Can you please share your OS, Node version, and AI-CLI version?
same here: Ubuntu 20.04 root@cnf:~# node -v v10.19.0 root@cnf:~# npm -v 6.14.4
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
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:
- I installed initially then uninstalled it completely
- Later, I reinstalled and I go the warning that node version required is >=14.0.0
- I use the following Source to install the required version.
--> npm -v 6.14.18 --> node -v v14.21.3
I hope this helps.