Adobe AIO CLI resulting in error | Community
Skip to main content
March 17, 2023

Adobe AIO CLI resulting in error

  • March 17, 2023
  • 3 replies
  • 3154 views

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-environment-set-up/development-tools.html?lang=en#aio-cli

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?

 

@joerghoh  @kautuk_sahni @28655 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

somen-sarkar
Community Advisor
Community Advisor
March 17, 2023

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

abhigyanswaroop
March 17, 2023

with updated node I see below 

>npm install -g @61380/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

 

Rohan_Garg
Community Advisor
Community Advisor
June 30, 2023

@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 -

 

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

Can you share your results for the same?

 

Thanks,

Rohan Garg

September 19, 2023

@k0204 

 

use npm -6.14.17
and node - v14.21.1

 

it works for me, with this versions