A very similar error occurs for yarn :
error An unexpected error occurred: "https://registry.yarnpkg.com/generator-jhipster: self signed certificate in certificate chain".
after
export NODE_TLS_REJECT_UNAUTHORIZED=0
I get:
error An unexpected error occurred: "https://registry.yarnpkg.com/generator-jhipster: SSL Error: SELF_SIGNED_CERT_IN_CHAIN".
Finally, the decision , while the lower yarn is now happy to accept the man in the middle attack of my corporate proxy.
export NODE_TLS_REJECT_UNAUTHORIZED=0 yarn config set strict-ssl false
source share