Expand my Community achievements bar.

SOLVED

AIO CLI Installation error

Avatar

Level 2

I am trying to install aio cloudmanager plugin on jenkins server. with the command 

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

 

Getting below error..

error An unexpected error occurred: "https://nexus.<name>.com/repository/npm-proxy/@adobe%2faio-cli-plugin-cloudmanager: Request \"https://nexus.<name>.com/repository/npm-proxy/@adobe%2faio-cli-plugin-cloudmanager\" returned a 402".

Installing plugin @adobe/aio-cli-plugin-cloudmanager... failed

    Error: yarn add @adobe/aio-cli-plugin-cloudmanager@latest --non-interactive 

    --mutex=file:/var/lib/jenkins/.local/share/@adobe/aio-cli/yarn.lock 

    --preferred-cache-folder=/var/lib/jenkins/.cache/@adobe/aio-cli/yarn --check-files exited with code 1

 

we are not using nexus for installing plugins. So how can i bypass nexus and install aio cloudmanger plugin.

Note : i can install same plugin with sudo user. while installing with user, not asking for nexus drive path.

 

Please help to resolve.

 

Thanks in advance.

1 Accepted Solution

Avatar

Correct answer by
Level 2

this issue is related to npm configuration.

i run the command : npm conifg list 

metrics-registry value is mappend to nexus drive. that's why, plugin is going to download from nexus.

 

i have changed this to 

metrics-registry = "https://registry.npmjs.org/"

 

and it was working fine. you can give it a try.

View solution in original post

5 Replies

Avatar

Community Advisor

Hi @punit-khatri,

On a high level, 402 error code on nexus request relates to licensing validation. 

But to address your concern on bypassing nexus request, could you please share the details on installed plugins in Jenkins related to Nexus and elaborate on steps you took for installing cloud manager plugin 

Avatar

Level 2
Nexus sonatye already there at jenkins server. i am using the command line to install the cloud manager plugin. aio plugins:install @adobe/aio-cli-plugin-cloudmanager

Avatar

Level 1

I am facing the same issue , adobe have any plugin to directly install the adobe cli on jenkins via manage plugin , 

if not then please share the steps to install the plugin in jenkins and how the cli can be used on later stage . 

 

Avatar

Correct answer by
Level 2

this issue is related to npm configuration.

i run the command : npm conifg list 

metrics-registry value is mappend to nexus drive. that's why, plugin is going to download from nexus.

 

i have changed this to 

metrics-registry = "https://registry.npmjs.org/"

 

and it was working fine. you can give it a try.