question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vue configuration when behind proxy

See original GitHub issue

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:

# 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:closed
  • Created 7 years ago
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

33reactions
traeblaincommented, Aug 25, 2017

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 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.)

22reactions
artzubcommented, Dec 9, 2017

Maybe it will be useful someone

npm_config_strict_ssl=false vue init webpack my-project
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Hashnode Post

No results found