vue configuration when behind proxy
See original GitHub issueHi,
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:
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name = myusername
email = myemail@domain.com
[http]
sslVerify = false
proxy = http://<username>:<password>@<proxy>:8080
[https]
[url "https://github.com/"]
insteadOf = git://github.com/
Thanks a lot in advance.
Issue Analytics
- State:
- Created 7 years ago
- Comments:16 (3 by maintainers)
Top Results From Across the Web
Vue.js — How To Proxy To Backend Server - Medium
In general, A proxy or proxy server serves as a gateway between your app and the internet. It's an intermediate server between client...
Read more >Configuration Reference | Vue CLI
This is configurable via the devServer.proxy option in vue.config.js . devServer.proxy can be a string pointing to the development API server:.
Read more >Dev server proxy - Vue.js Developers
Proxy. The solution is to proxy calls to the API server during development. Luckily, this is something that's easy to configure with the...
Read more >VueJS - vue.config.js proxy configuration for build
Our API urls are always the production server ones, and we use this setting in the proxy to pass through to our local...
Read more >Integrating backend in Vue applications with a proxy
How to integrate backend in a vue application? · How to setup proxy url in the vue configuration? · Understand and solve the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
Top Related Hashnode Post
No results found
Top GitHub Comments
For anyone still having issues with this here’s a band-aid fix:
So like the commenters git works fine by itself, so clone the template you want into your
HOME/.vue-templates
folder, then use the --offline switch to skip the non-functioning git clone that vue-cli uses. Then npm install works just fine and you are ready to go.(NOTE: If you are on Windows machine using cmd, you’ll need to change your folder commands appropriately.)
Maybe it will be useful someone