'UNABLE_TO_GET_ISSUER_CERT_LOCALLY' with using npx graphql-cli init
mercale opened this issue · 0 comments
mercale commented
Describe the bug
I am unable to create a new project using npx graphql-cli init
What is your recommendation to fix this. Note: I have my npm config registry to artifactory, I am behind my company firewall. I am generally able npm install except for this particular package, see error below. Any help would be appreciated.
To Reproduce
npm i -g graphql-cli
npx graphql-cli init
// project name entered: first-graphql-cli
// selected new template
// select apollo-mongo-server-ts
error thrown:
? Choose a template to bootstrap apollo-mongo-server-ts
Bootstraping graphql server 💫 ✨
/ Downloading starter from https://api.github.com/repos/aerogear/graphback/tarball/templates-1.0.0internal/streams/legacy.js:61
throw er; // Unhandled stream error in pipe.
^
Error: unable to get local issuer certificate
at TLSSocket.onConnectSecure (_tls_wrap.js:1497:34)
at TLSSocket.emit (events.js:315:20)
at TLSSocket._finishInit (_tls_wrap.js:932:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:706:12) {
code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY'
Expected behavior
A new project is created with the a name first-graphql-cli
with a full project template
Screenshots
see error message above
Versions (please complete the following information):
- OS: Windows 10
graphql-cli
: 4.1.0- other packages if applicable: none
Additional context
My npm config registry is set to artifactory