Issuer certificate issue when init vue-cli

Total
1
Shares

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?


Solution

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.

Leave a Reply

Your email address will not be published. Required fields are marked *