You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Firebase部署Node.js 16函数失败:缺少GLIBC_2.28依赖

部署Firebase函数时出现GLIBC版本错误

部署本地模拟器中可正常运行的Firebase函数时,遇到以下错误:

i  functions: creating Node.js 16 function <function-name>(us-central1)...
Build failed: node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28'
not found (required by node); Error ID: 653c7ba4

Functions deploy had errors with the following functions:
        <function-name>(us-central1)
i  functions: cleaning up build files...

Error: There was an error deploying functions

已尝试的操作:

  • 将Node版本从18降级到16,且在package.json中配置:
"engines": {
  "node": "16"
},
  • 使用Node 16重新构建所有内容

我曾误以为libc.so.6与Java相关,但不清楚具体解决方法,我的Java版本信息如下:

java 19 2022-09-20
Java(TM) SE Runtime Environment (build 19+36-2238)
Java HotSpot(TM) 64-Bit Server VM (build 19+36-2238, mixed mode, sharing)

注:我使用的是基于Arch Linux的Archcraft发行版,该项目为开源项目,已在Firebase JS SDK的GitHub仓库提交该问题。

内容的提问来源于stack exchange,提问作者psygo

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.17 18:01:16