firebase - 如何安装非官方 Firebase 扩展

标签 firebase google-cloud-firestore

寻找有关安装非官方 firestore-nlp-extension 的步骤的信息,链接如下。

https://github.com/FirebaseExtended/firestore-nlp-extension

我读了firestore docs但没有看到安装“自定义”扩展的说明。

感谢任何帮助!

最佳答案

您需要从本地源安装扩展,但这在 alpha 期间可用,并且以下链接不再有效

https://firebase.google.com/docs/extensions/alpha/install-extensions_community#install

特定扩展似乎在 Firebase 系统上不可用:

Error: The extension reference 'firebase/firestore-natural-language-processing@latest' doesn't exist. This could happen for two reasons: -The publisher ID 'firebase' doesn't exist or could be misspelled -The name of the extension version 'firestore-natural-language-processing@latest' doesn't exist or could be misspelled

对于 cli 工具的当前测试版,我发现了以下内容:

首先,克隆扩展的 git 存储库:

git clone <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="43242a3703242a372b36216d202c2e" rel="noreferrer noopener nofollow">[email protected]</a>:FirebaseExtended/firestore-nlp-extension.git

然后运行以下命令来构建项目:

cd firestore-nlp-extension/functions
yarn add -D rimraf
yarn build
cd ../..

然后要安装此扩展,请运行:

firebase ext:install ./firestore-nlp-extension --project=YOUR_PROJECT

如果出现路径错误,您可能需要找到正确的路径,例如:

firebase ext:install ./firestore-nlp-extension/functions --project=YOUR_PROJECT

关于firebase - 如何安装非官方 Firebase 扩展,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70611848/

相关文章:

java - 将 firebase 添加到应用程序时出现 appcompat 依赖项错误

firebase - 如何使用Firebase获取“移动查询”

swift - Firebase 身份验证的电子邮件验证

java - 当我单击recyclerView时如何从Firestore中获取数据?

firebase - 使用 Flutter Firebase 存储插件上传文件

firebase - Flutter Firestore StreamBuilder 最初获得空值

java - 如何循环遍历2个数组列表并返回匹配的项目数以及firestore中的匹配项目?

javascript - 无法使用我的 Firebase 函数从 Firestore 读取数据

javascript - 如何将数组中的 JSON 数据保存到 Firestore

firebase - 多个 Firestore 查询,单个 promise /回调