0
  • I am trying to implement yo generator example from here.
  • I did npm and node installation.
  • While doing npm install -g yo generator-office I faced the same self signed certificate in certificate chain issue. This was solved using npm config set strict-ssl false.
  • While doing yo office I am facing the same issue.
  • Error
Unable to download project zip file for "https://github.com/OfficeDev/Office-Addin-TaskPane-JS/archive/yo-office.zip".
Error: self signed certificate in certificate chain

enter image description here

Lav Sharma
  • 327
  • 1
  • 5
  • 23

2 Answers2

0
  • Export your certificate as below
export NODE_EXTRA_CA_CERTS="<certificate_path>"
Lav Sharma
  • 327
  • 1
  • 5
  • 23
0

I got same Issue and got resolved by

1.Setting CA Certificate 2.Defining Environment Variable

Steps

a)Get your CA Root Certificate in .pem format npm config set cafile /RootCertificate.pem

b)System Variable "NODE_EXTRA_CA_CERTS" "C:\RootCertificate.pem"

My machine is running under Zscalar

user2832577
  • 77
  • 2
  • 7