寻找有关安装非官方 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/