EAS Build:configure... 找不到 git 命令

问题描述

EAS 给了我构建 React Native 应用程序的机会。如果我运行 eas build [andoid,ios,or all] 我会收到以下消息:

const db = admin.firestore();

exports.func = functions.https.onRequest((req,res) => {

    const dailyQuestionBankRef = db
              .collection("daily_play_questions"); // set collection reference

    const selectedQuestionSet = await dailyQuestionBankRef
              .doc(randomNumber)
              .get();

    res.status(200).send(selectedQuestionSet.data());
});

我点击了“y”,然后收到了这条消息。

Your Android project is not configured to build with EAS. Set it up Now? » (Y/n)

什么git命令?我该如何安装?我找不到任何其他人有这个问题的参考。有任何想法吗?如果我可以发布任何其他信息以提供帮助,请告诉我。

我的eas-cli版本如下:eas-cli/0.20.0 win32-x64 node-v12.19.0

这是一个托管工作流,然后我将其弹出到一个裸露的工作流中,但在弹出之前我就遇到了这个问题

解决方法

您应该首先检查 git 是否在您的 %PATH% (Windows) 或 $PATH (Linux/Mac) 中

只需在 git version 之前键入 eas build:如果命令失败,则会解释错误消息。
如果您没有安装 Git,请先安装它。