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 @adobe/aio-cli-plugin-aem-cloud-service-migration... failed
Error: yarn add @adobe/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:
@adobe/aio-cli/5.0.1 win32-x64 node-v10.13.0
Please provide insights on resolving the issues
Solved! Go to Solution.
Views
Replies
Total Likes
If http or no SSL is not working then try configuring the root SSL certificate in your node installation.
Openssl x509 -inform DER -outform PEM -in node-registry-certificate.cer -out node-registry-certificate.pem
cafile=C:\workspace\node-registry-certificate.pem
Re-run your npm install command.
If http or no SSL is not working then try configuring the root SSL certificate in your node installation.
Openssl x509 -inform DER -outform PEM -in node-registry-certificate.cer -out node-registry-certificate.pem
cafile=C:\workspace\node-registry-certificate.pem
Re-run your npm install command.
Please refer to https://techrevelhub.wordpress.com/2024/02/14/empowering-teams-the-rde-advantage-in-aem-development/...
If you encounter the “unable to load certificates openssl” error while using status/install commands, you can apply the following quick fixes:
npm config set strict-ssl false
Alternatively, you can bypass certificate verification by setting an environment variable:
export NODE_TLS_REJECT_UNAUTHORIZED=0
SET NODE_TLS_REJECT_UNAUTHORIZED=0 //For Windows command line
Please note that both commands pose a security risk as they bypass certificate verification, so they should only be used temporarily.
Hi Kunal,
I am getting the same error despite trying your solution, can you please assist me on this?