aio cli registry error | Community
Skip to main content
Level 2
December 23, 2020
Solved

aio cli registry error

  • December 23, 2020
  • 1 reply
  • 3963 views

Hi,

 

I am trying to run 

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

But i am getting the following error :

warning ..\..\..\..\package.json: No license field error An unexpected error occurred: "https://registry.npmjs.org/@adobe%2faio-cli-plugin-aem-cloud-service-migration/@adobe%2faio-cli-plugin-aem-cloud-service-migration: unable to get local issuer certificate". Installing plugin @61380/aio-cli-plugin-aem-cloud-service-migration... failed Error: yarn add @61380/aio-cli-plugin-aem-cloud-service-migration@latest --non-interactive --mutex=file:C:\Users\AppData\Local\@adobe\aio-cli\yarn.lock --preferred-cache-folder=C:\Users\AppData\Local\@adobe\aio-cli\yarn --check-files exited with code 1

 

I have tried with npm config set registry http://registry.npmjs.org/  and setting the ssl to false. Nothing worked.

 

Please find the aio version below:

@61380/aio-cli/5.0.1 win32-x64 node-v10.13.0

 

Please provide insights on resolving the issues

 

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

If http or no SSL is not working then try configuring the root SSL certificate in your node installation. 

  1. Open https://registry.npmjs.org/ in your browser. Then click on certificate icon in the address bar. Go to the certification path tab and select the root certification chain. Click on View Certificate button and then in the new certificate dialog click on Details tab. Then click on copy to file button to download the CER certificate on your file system. 
  2. Convert the above CER certificate to PEM format using the below command. For OpenSSL on windows you can download openssl or use gitbash command shell. You have to provide the path of the CER certificate and output PEM file. 
    Openssl x509 -inform DER -outform PEM -in node-registry-certificate.cer -out node-registry-certificate.pem
  3. After downloading the PEM file. You can set it in your nodejs config. Edit your .npmrc file and add the following line- 

 

cafile=C:\workspace\node-registry-certificate.pem​

 

Re-run your npm install command. 

1 reply

Kunal_Gaba_
Kunal_Gaba_Accepted solution
December 23, 2020

If http or no SSL is not working then try configuring the root SSL certificate in your node installation. 

  1. Open https://registry.npmjs.org/ in your browser. Then click on certificate icon in the address bar. Go to the certification path tab and select the root certification chain. Click on View Certificate button and then in the new certificate dialog click on Details tab. Then click on copy to file button to download the CER certificate on your file system. 
  2. Convert the above CER certificate to PEM format using the below command. For OpenSSL on windows you can download openssl or use gitbash command shell. You have to provide the path of the CER certificate and output PEM file. 
    Openssl x509 -inform DER -outform PEM -in node-registry-certificate.cer -out node-registry-certificate.pem
  3. After downloading the PEM file. You can set it in your nodejs config. Edit your .npmrc file and add the following line- 

 

cafile=C:\workspace\node-registry-certificate.pem​

 

Re-run your npm install command. 

sravs508Author
Level 2
December 23, 2020
It worked .Thank you