Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'UNABLE_TO_GET_ISSUER_CERT_LOCALLY' with using npx graphql-cli init #1699

Open
mercale opened this issue Jan 26, 2021 · 0 comments
Open

'UNABLE_TO_GET_ISSUER_CERT_LOCALLY' with using npx graphql-cli init #1699

mercale opened this issue Jan 26, 2021 · 0 comments

Comments

@mercale
Copy link

mercale commented Jan 26, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant