Yarn: 错误找不到二进制 git

创建于 2017-04-11  ·  3评论  ·  资料来源: yarnpkg/yarn

*在创建问题之前,请确保您使用的是最新版本的纱线。*

您要请求功能还是报告错误

目前的行为是什么?

如果当前行为是错误,请提供重现步骤。

什么是预期行为?

请提及您的 node.js、yarn 和操作系统版本。
--- frontend-maven-plugin:1.3:yarn (yarn install) @ metasoft-web-product-graph ---
[信息] 在 C:\Users\Abhijeet\Documents\GitHub\metasoft\web\plugins\graph-product\src\main\resources\co\metasoft\web\product\graph 中运行“纱线”
[信息] 纱线安装 v0.17.10
[INFO] [1/4] 正在解析包...
[INFO] [2/4] 正在获取包...
[错误] 错误找不到二进制 git
[INFO] info 访问 https://yarnpkg.com/en/docs/cli/install 获取有关此命令的文档。
[信息] ----------------------------------------------- -------------------------
[信息] 反应堆摘要:
[信息]
[信息] Metasoft:Web:客户端 API ..................... 成功 [0.680 秒]
[信息] Metasoft ................................... 成功 [0.372 ]
[信息] Metasoft:核心组 ..................... 成功 [0.060 秒]
[信息] Metasoft:核心 ..................................... 成功 [0.703 秒]
[INFO] Metasoft: Common ................................... 成功 [ 0.060 s]
[INFO] Metasoft: Common: RDF ......................... 成功 [0.222 s]
[信息] Metasoft: 核心: 插件 ..................... 成功 [ 0.052 s]
[信息] Metasoft:核心:插件:模型:队列:InMemory ..... 成功 [0.158 秒]
[信息] Metasoft:核心:插件:模型:Vertexium ..... 成功 [0.555 秒]
[信息] Metasoft:核心:插件:模型:Vertexium InMemory .. 成功 [0.290 秒]
[信息] Metasoft:核心测试 ................................................ 成功 [0.211 秒]
[信息] Metasoft:核心:插件:模型:Vertexium Elasticsearch 成功 [0.294 秒]
[信息] Metasoft:开发 ................................................ 成功 [0.081 秒]
[信息] Metasoft: Web ................................... 成功 [0.053 s]
[信息] Metasoft: Web: Base ..................... 成功 [0.772 秒]
[INFO] Metasoft: Web: Server ..................... 成功 [ 0.056 s]
[INFO] Metasoft: Web: Server: Base ..................... 成功 [ 0.251 s]
[INFO] Metasoft: Web: Server: Jetty ......................... 成功 [0.271 s]
[信息] Metasoft: Web: Plugin Base ..................... 成功 [0.443 s]
[INFO] Metasoft: Web: Plugin: Username-only Authentication SUCCESS [ 0.524 s]
[信息] Metasoft:Web:插件:管理员用户工具…………成功 [0.516 秒]
[信息] Metasoft:Web:插件:管理员用户工具:用户属性授权成功 [0.544 秒]
[信息] Metasoft:Web:插件:管理员用户工具:用户属性权限成功 [0.528 秒]
[信息] Metasoft:Web:插件:管理员导入 RDF ..... 成功 [0.642 秒]
[信息] Metasoft: Web: Plugin: Graph Work Product .......... 失败 [1.516 s]
[信息] Metasoft: Web: Plugin: Map Work Product ................. 跳过
[信息] Metasoft:核心:插件:摄取:云:S3 ..........跳过
[信息] Metasoft: Web: Structured Ingest: Core ................SKIPED
[信息] Metasoft:核心:插件:结构化摄取:已跳过电子表格
[信息] Metasoft:核心:插件:结构化摄取:Parquet。 跳过
[信息] Metasoft: GraphPropertyWorker ...................... 跳过
[信息] Metasoft: GraphPropertyWorker: Plugin Base ........... 跳过
[信息] Metasoft:GraphPropertyWorker:插件:电子邮件地址提取器已跳过
[信息] Metasoft:GraphPropertyWorker:插件:Mime 类型本体映射器已跳过
[信息] Metasoft:GraphPropertyWorker:插件:电话号码提取器已跳过
[信息] Metasoft:GraphPropertyWorker:插件:Tika Mime 类型映射器已跳过
[信息] Metasoft:GraphPropertyWorker:插件:已跳过 Tika 文本提取器
[信息] Metasoft:GraphPropertyWorker:插件:邮政编码提取器已跳过
[信息] Metasoft: Web: War ................................... 跳过
[信息] Metasoft: Dev: Jetty Server ..................... 跳过
[信息] ----------------------------------------------- -------------------------
[信息] 构建失败
[信息] ----------------------------------------------- -------------------------
[信息] 总时间:10.651 秒
[INFO] 完成时间:2017-04-11T15:15:35+05:30
[INFO] 最终内存:47M/678M
[信息] ----------------------------------------------- -------------------------
[错误] 无法在项目 metasoft-web-product-graph 上执行目标 com.github.eirslett:frontend-maven-plugin:1.3:yarn (yarn install): Failed to run task: 'yarn' failed. (错误代码 1)-> [帮助 1]
[错误]
[错误] 要查看错误的完整堆栈跟踪,请使用 -e 开关重新运行 Maven。
[错误] 使用 -X 开关重新运行 Maven 以启用完整的调试日志记录。
[错误]
[ERROR] 有关错误和可能的解决方案的更多信息,请阅读以下文章:
[错误] [帮助 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[错误]
[ERROR] 修正问题后,可以使用命令恢复构建
[错误] mvn-rf :metasoft-web-product-graph

节点版本-v6.10.2
npm 版本-3.10.10
纱线版本-v0.22.0

最有用的评论

您是否安装了git并在PATH可用? 如果你运行git --version输出是什么?

所有3条评论

是的,同样的问题在 Windows 10 上!

C:\WorkDirectory\Node\stackedit>yarn install
yarn install v1.3.2
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
error Couldn't find the binary git
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

C:\WorkDirectory\Node\stackedit>

您是否安装了git并在PATH可用? 如果你运行git --version输出是什么?

@rally25rs抱歉,忘记删除这个问题是我的错。 我通过将 git 添加到 Windows 路径解决了这个问题:咧嘴笑:

此页面是否有帮助?
0 / 5 - 0 等级