2
votes

I'm trying to initialize a new project with vue-cli (on Centos7).

But, when I run this command:

vue init webpack-simple myproject

The following error appears:

vue-cli · Failed to download repo vuejs-templates/webpack-simple: unable to get local issuer certificate

Does anyone know how to fix it?

3
Are you behind a proxy? github.com/vuejs/vue-cli/issues/258 - thanksd
Yes I am! But I don't understand the solution proposed in the link that you indicated. What's the connection with Git? - Baptiste

3 Answers

0
votes

I fixed it by doing this:

  • I completely uninstalled and then reinstalled nodejs on my Centos7
  • I reinstalled vue-cli

Then I tried:

vue init webpack-simple myproject

And it worked perfectly.

0
votes

Maybe a little bit lat, but can help others in the future. This fixed mine (I'm in MacOsX) :

sudo npm update -g @vue
sudo npm i -g @vue/cli-init
0
votes

before do you intall a vue project, uninstall the antivirus. To unblock self signed certificate in certificate chain