-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
vue configuration when behind proxy #258
Comments
It has actually nothing to do with your gitconfig. Your proxy is actually an insecure man in the middle... Not verifying the ssl certificate is a bad idea. To debug further this problem you should check https://github.com/flipxfx/download-git-repo/blob/master/package.json and its dependencies. That's what vue-cli uses under the hood to fetch the template |
Thanks a lot for pointing this out. I'll investigate the dependencies. |
|
I'm able to clone from git manually, but when trying to vue init a template, I get "unable to get local issuer certificate." I've already added our cert similar to this vscode/git issue method and I've added our proxy in the config for node/git. Is there an avenue to config vue-cli or the under-the-hood download-git-repo to cooperate with our proxy? |
For anyone still having issues with this here's a band-aid fix: git clone https://github.com/vuejs-templates/simple ~/.vue-templates/simple
vue init simple my-project --offline
cd my-project
npm install
npm run dev So like the commenters git works fine by itself, so clone the template you want into your (NOTE: If you are on Windows machine using cmd, you'll need to change your folder commands appropriately.) |
@traeblain Thanks for sharing. |
Thanks! Worked for me on my corporate Windows machine. Had to set some env variables, like HTTPS_PROXY to point at our proxy server, but after that it worked. |
Maybe it will be useful someone
|
@yyx990803 not sure why you're closing this out... it is an issue that is not resolved. The workaround @traeblain specifies is the only method for some of us using corp proxies with man-in-the-middle certs. |
@kreig303 unfortunately, we will no longer be adding new features to vue-cli 2.x. We will try to address this if the similar issue persists in 3.0. |
hi @traeblain, where can I find the |
@MojoeJoJo you may have to create it, or let git create it when you clone. If you are on Linux create |
this works
|
In my case helped a strange solution - I updated git and disabled Kaspersky mall Office Security (I work on windows) |
this works |
This works |
Hi,
We are having lots of trouble configuring the vue-cli. We are behind a proxy and get the following error when installing a template:
vue-cli · Failed to download repo vuejs-templates/simple: unable to verify the first certificate
We think this is due to our proxy and misconfiguration of our gitconfig. Also, our proxy has a certificate configured. Does anyone know, how to troubleshoot this because I find this very cumbersome.
Our .gitconfig file looks like this:
Thanks a lot in advance.
The text was updated successfully, but these errors were encountered: