Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

AIO plugin installation error

Avatar

Level 2

Hi All,

 

I am trying to setup Adobe I/O CLI and Cloud Manager Plugin in my local system with the below command 

npm install -g @adobe/aio-cli - Installed successfully and able to run aio commands.

 

but I am getting below error for cloud manager plugin installation

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

 

Error

error Couldn't find package "halfred" on the "npm" registry.
Error: Couldn't find package "cli-ux" on the "npm" registry.
at MessageError.ExtendableBuiltin (C:\Users\psa\AppData\Roaming\npm\node_modules\@adobe\aio-cli\node_modules\yarn\lib\cli.js:721:66)
at new MessageError (C:\Users\psa\AppData\Roaming\npm\node_modules\@adobe\aio-cli\node_modules\yarn\lib\cli.js:750:123)
at NpmResolver.<anonymous> (C:\Users\psa\AppData\Roaming\npm\node_modules\@adobe\aio-cli\node_modules\yarn\lib\cli.js:50489:15)
at Generator.next (<anonymous>)
at step (C:\Users\psa\AppData\Roaming\npm\node_modules\@adobe\aio-cli\node_modules\yarn\lib\cli.js:310:30)
at C:\Users\psa\AppData\Roaming\npm\node_modules\@adobe\aio-cli\node_modules\yarn\lib\cli.js:321:13
at processTicksAndRejections (internal/process/task_queues.js:95:5)
Error: Couldn't find package "figures" on the "npm" registry.

 

Installing plugin @adobe/aio-cli-plugin-cloudmanager... failed
Error: yarn add @adobe/aio-cli-plugin-cloudmanager@latest --non-interactive --mutex=file:C:\Users\psa\AppData\Local\@adobe\aio-cli\yarn.lock
--preferred-cache-folder=C:\Users\psa\AppData\Local\@adobe\aio-cli\yarn --check-files exited with code

 

I am getting below for aio info command

------------------------------------------

System:
OS: Windows 10 10.0.19042
CPU: (8) x64 Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz
Memory: 2.48 GB / 15.81 GB
Binaries:
Node: 14.17.3 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 6.14.13 - C:\Program Files\nodejs\npm.CMD
Virtualization:
Docker: Not Found
npmGlobalPackages:
@adobe/aio-cli: Not Found

 

Could you please suggest me to resolve the issue.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Have you tried doing

npm install -g yarn

and then restarting your terminal to do the installation again ?

View solution in original post

9 Replies

Avatar

Correct answer by
Employee Advisor

Have you tried doing

npm install -g yarn

and then restarting your terminal to do the installation again ?

Avatar

Level 1

I found that I required NodeJS 14 to install aio-cli then had to update to NodeJS 16 to install the cloudmanager plugin.

Avatar

Level 5

Hi @Nirmal_Jose @bkrtrp @R_R_P 

Just try to install aio-cli-plugin-cloudmanager facing issue with below error.

Really appreciate inputs here.

C:\Users\12345>node -v
v18.16.0

C:\Users\12345>npm -v
9.5.1

C:\Users\12345>aio plugins:install @adobe/aio-cli-plugin-cloudmanager
Installing plugin @adobe/aio-cli-plugin-cloudmanager... \ [1/4] Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/@adobe%2faio-cli-plugin-cloudmanager: unable to get loInstalling plugin @adobe/aio-cli-plugin-cloudmanager... failed
Error: yarn add @adobe/aio-cli-plugin-cloudmanager@latest --non-interactive
--mutex=file:C:\Users\12345\AppData\Local\@adobe\aio-cli\yarn.lock
--preferred-cache-folder=C:\Users\12345\AppData\Local\@adobe\aio-cli\yarn --check-files exited with code 1

Avatar

Level 1

You may need to downgrade to NodeJS16.

It also appears you need to install yarn.

npm install -g yarn

 

Avatar

Level 5

Hi @bkrtrp,

installed yarn already but will try with NodeJS16 version.

Avatar

Level 5

Still the same issue @bkrtrp  even after downgrade Nod JS version16. Any inputs here to resolve and install it.

rsl_lucky_0-1698753833757.png

Avatar

Level 1

My next thought would be about npm version. The only other variable I see from what I got to work is the npm version.

 

I would suggest the following:

- npm cache clear --force

- npm install -g npm@8.19.4

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

Avatar

Level 5

@bkrtrp Had try above mentioned commands downgrading npm version and cache clear but still same issue when ran aio plugin for cloud manager.

rsl_lucky_0-1698761275442.png

Any thought where the issue could be exactly ?

 

Avatar

Level 1

No, issue exactly is a mix of packages and versions and software....smile.

Last try then we'll need to hear from others in the community or support...

 

I had to go about it this way:

- clear my paths, .nvm, .npm folders

- Install nodejs 14

- Install aio client with nodejs 14

- Install yarn globally

- Install nodejs 16

- Install aio plugin

So likely you've got orphans and cache data from the version changings that are working against the effort.  Cleanup, start the minimum with node14, reinstall aio, install yarn, update to node 16, install aio plugin:cloudmanager.

Remember to be targeting aio plugin:install for cloudmanager.  If you do the npm install cloudmanager it will work but change all your command lines from aio to cloudmanager.

Good luck.