在windows的cmd中执行taro init遇到如下错误:
D:\code>taro init
👽 Taro v3.2.0Taro 即将创建一个新项目!
Need help? Go and open issue: https://tls.jd.com/taro-issue-helper? 请输入项目名称! taro-demo
? 请输入项目介绍! demo
? 请选择框架 Vue3
? 是否需要使用 TypeScript ? Yes
? 请选择 CSS 预处理器(Sass/Less/Stylus) Less
? 请选择模板源 Gitee(最快)
- 正在从 direct:https://gitee.com/o2team/taro-project-templates.git#v3.1 拉取远程模板...events.js:174throw er; // Unhandled 'error' event^Error: spawn git ENOENTat Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)at onErrorNT (internal/child_process.js:415:16)at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)at onErrorNT (internal/child_process.js:415:16)at process._tickCallback (internal/process/next_tick.js:63:19)
解决办法:
安装:git bash
本文链接:https://my.lmcjl.com/post/927.html
展开阅读全文
4 评论