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

RequestError: Error: unable to verify the first certificate #1427

Closed
Christilut opened this issue Jun 1, 2018 · 3 comments
Closed

RequestError: Error: unable to verify the first certificate #1427

Christilut opened this issue Jun 1, 2018 · 3 comments

Comments

@Christilut
Copy link

Version

3.0.0-beta.15

Reproduction link

https://github.com/vuejs/vue-cli

Steps to reproduce

vue create my-app

What is expected?

Vue CLI asking the usual questions

What is actually happening?

RequestError: Error: unable to verify the first certificate
at new RequestError (/home/alpha/.npm-global/lib/node_modules/@vue/cli/node_modules/request-promise-core/lib/errors.js:14:15)
at Request.plumbing.callback (/home/alpha/.npm-global/lib/node_modules/@vue/cli/node_modules/request-promise-core/lib/plumbing.js:87:29)
at Request.RP$callback [as _callback] (/home/alpha/.npm-global/lib/node_modules/@vue/cli/node_modules/request-promise-core/lib/plumbing.js:46:31)
at self.callback (/home/alpha/.npm-global/lib/node_modules/@vue/cli/node_modules/request/request.js:185:22)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at Request.onRequestError (/home/alpha/.npm-global/lib/node_modules/@vue/cli/node_modules/request/request.js:877:8)
at emitOne (events.js:116:13)
at ClientRequest.emit (events.js:211:7)
at TLSSocket.socketErrorListener (_http_client.js:387:9)


I installed vue-cli with the global flag but without sudo.
I use this script to install global packages in my user folder.

Running Kubuntu 18.04

@Christilut
Copy link
Author

Christilut commented Jun 1, 2018

Beta 10 does this after asking the questions.
I tried all beta versions up to 15 and they all have the above error when first running the create command.

I'm not behind a proxy or VPN. I am behind our work firewall but that hasn't been a problem so far.

@Christilut
Copy link
Author

Christilut commented Jun 1, 2018

npm_config_strict_ssl=false vue create webpack my-project doesn't help either

@yyx990803
Copy link
Member

This is probably related to a ping to alternative npm registries. You can try to locally apply the changes in be5526e to see if that fixes your issue.

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

2 participants