Issuer certificate issue when init vue-cli

Baptiste

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?

Baptiste

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.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related