Vue-cli: unable to verify the first certificate

Created on 9 Jun 2017  路  7Comments  路  Source: vuejs/vue-cli

run vue init webpack projectName

vue-cli 路 Failed to download repo vuejs-templates/webpack: unable to verify the first certificate

Most helpful comment

It helped me

npm_config_strict_ssl=false vue init webpack my-project

All 7 comments

This is because you're behind a VPN. This may help: https://github.com/typings/typings/issues/564

It helped me

npm_config_strict_ssl=false vue init webpack my-project

I have the same problem and tried your solution and still got an error

My way on Windows 10:

  1. Run "Node.js command prompt".
  2. Type SET npm_config_strict_ssl=false there.
  3. Type vue init vuetifyjs/webpack-simple my-project

It's a kind of magic you know but it works for me. Good luck!

My way on Windows 10:

  1. Run "Node.js command prompt".
  2. Type SET npm_config_strict_ssl=false there.
  3. Type vue init vuetifyjs/webpack-simple my-project

It's a kind of magic you know but it works for me. Good luck!

thanks, It works! but seems not so secure. I wonder how to add self-signed certificated in npm;

It helped me

npm_config_strict_ssl=false vue init webpack my-project

could it be more detail please? i just copy and enter it at my cmd but it failed.

None of these solutions work for me. I'm going through a proxy, which works fine with npm, but will not work with vue-cli. What is vue doing differently than npm?

Was this page helpful?
0 / 5 - 0 ratings