vue init失败简单解决方法(终极版)
//由于windows系统的某方面问题,vue脚手架安装可能会出现第一证书丢失
// 报错:vue-cli · Failed to download repo vuejs-templates/webpack-simple: unable to verify the first certificate
//简单一点,你也可以直接去github下载对应的模板(template), 然后windows+r,cmd,
vue init webpack-simple project --offline
//project是项目名称
//在https://github.com/vuejs-templates/下载(看不懂英文直接点Clone or Download 里的 Download ZIP)。
//下载webpack-simple 或 webpack.这里建议webpack-simple。因为webpack有坑。解决方案后续再更吧= =。类似严格模式(类似!!!!),多一个空格都报错的那种恶心东西
//把解压出的文件夹放在
//C:\Users\Administrator\.vue-templates
//Administrator写你的用户名
//到你的project的文件夹,执行
vue init webpack-simple project --offline
上不了github的九安装淘宝镜像cnpm
总结
以上所述是小编给大家介绍的vue init失败简单解决方案(终极版),希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持!
相关文章
vue this.$router和this.$route区别解析及路由传参的2种方式 && this.$route
this.$router 相当于一个全局的路由器对象,包含了很多属性和对象(比如 history 对象),任何页面都可以调用其 push(), replace(), go() 等方法,本文给大家介绍Vue中this.$router与this.$route的区别 及push()方法,感兴趣的朋友跟随小编一起看看吧2023-10-10vue轮播组件实现$children和$parent 附带好用的gif录制工具
这篇文章主要介绍了vue轮播组件实现,$children和$parent,附带好用的gif录制工具,需要的朋友可以参考下2019-09-09
最新评论