Unable to download project zip file for "https://github.com/OfficeDev/Office-Addin-TaskPane-JS/archive/yo-office.zip"

792 Views Asked by At
  • 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

2

There are 2 best solutions below

0
Lav Sharma On BEST ANSWER
  • Export your certificate as below
export NODE_EXTRA_CA_CERTS="<certificate_path>"
0
user2832577 On

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