If the CodeBuild failed with following issue:

 

Err:4 https://deb.nodesource.com/node_14.x focal Release
  Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  
Could not handshake: Error in the certificate verification.

 

Try to add the following command before installing the node in your buildspec.yml file:

 

- apt-get update
- echo Installing Certificate...
- apt-get install ca-certificates

 

References:

https://github.com/nodesource/distributions/issues/1266

 

相关文章:

  • 2022-12-23
  • 2022-01-23
  • 2021-05-17
  • 2021-12-05
  • 2022-12-23
  • 2021-06-16
  • 2022-12-23
  • 2021-05-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2021-09-29
  • 2021-12-24
  • 2022-12-23
  • 2021-08-01
相关资源
相似解决方案