run vue init webpack projectName
vue-cli 路 Failed to download repo vuejs-templates/webpack: unable to verify the first certificate
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:
SET npm_config_strict_ssl=false
there.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:
- Run "Node.js command prompt".
- Type
SET npm_config_strict_ssl=false
there.- 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?
Most helpful comment
It helped me