Expand my Community achievements bar.

Adobe AIO CLI resulting in error

Avatar

Level 2

I am trying to set-up the Adobe IO cli to tail the logs for AEMaaCS following the document 
https://experienceleague.adobe.com/docs/experience-manager-learn/cloud-service/local-development-env...

I am able to install Node version which is currently 

>node --version
v12.22.12

However, when i am trying to run the command 

aio plugins:install @adobe/aio-cli-plugin-cloudmanager

I see below error

C:\Users\aswaroop>aio plugins:install @adobe/aio-cli-plugin-cloudmanager
C:\Users\aswaroop\AppData\Roaming\npm\node_modules\@adobe\aio-cli\node_modules\@oclif\core\lib\command.js:41
            delete this.globalFlags?.json;
                                    ^

SyntaxError: Unexpected token '.'
←[90m    at wrapSafe (internal/modules/cjs/loader.js:915:16)←[39m
←[90m    at Module._compile (internal/modules/cjs/loader.js:963:27)←[39m
←[90m    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)←[39m
←[90m    at Module.load (internal/modules/cjs/loader.js:863:32)←[39m
←[90m    at Function.Module._load (internal/modules/cjs/loader.js:708:14)←[39m
←[90m    at Module.require (internal/modules/cjs/loader.js:887:19)←[39m
←[90m    at require (internal/modules/cjs/helpers.js:74:18)←[39m
    at Object.<anonymous> (C:\Users\aswaroop\AppData\Roaming\npm\node_modules\←[4m@adobe←[24m\aio-cli\node_modules\←[4m@oclif←[24m\core\lib\index.js:6:19)
←[90m    at Module._compile (internal/modules/cjs/loader.js:999:30)←[39m
←[90m    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)←[39m

Do we have any resolution to this?

 

@Jörg_Hoh  @kautuk_sahni @abhigyan 

5 Replies

Avatar

Level 5

Hi,

Could you try upgrading the node version and then  try to install the  cloud manager plugin ? I have node version 18.14.2 and it is working fine.

Thanks,

Somen

Avatar

Level 2

with updated node I see below 

>npm install -g @adobe/aio-cli
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@adobe/generator-app-asset-compute@0.2.3',
npm WARN EBADENGINE   required: { node: '^14 || ^16' },
npm WARN EBADENGINE   current: { node: 'v18.14.2', npm: '9.5.0' }
npm WARN EBADENGINE }
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm WARN deprecated readdir-scoped-modules@1.1.0: This functionality has been moved to @npmcli/fs
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility

 

Avatar

Level 2

We are facing similar issue.

 

We are using 

 

node - 16.17.0

npm - 8.15.0

 

runtime documentation recommends this - https://developer.adobe.com/runtime/docs/guides/reference/runtimes/

 

anyone has any other inputs?

 

Thanks.

Avatar

Community Advisor

@k0204  - Can you navigate to the node module "@oclif" and see its package.json ?
Also check the file in question command.js.
Ideally yes, you don't have to even look at these dependencies!

Here's my package.json for this module -

Rohan_Garg_0-1688110021156.png

 

Also the file command.js for the variable "this.globalFlags" looks like this for me -

Rohan_Garg_1-1688110155338.png

Can you share your results for the same?

 

Thanks,

Rohan Garg

Avatar

Level 2

@k0204 

 

use npm -6.14.17
and node - v14.21.1

 

it works for me, with this versions