我已成功运行 Firebase 模拟器:
E:\firebase>firebase emulators:start
i emulators: Starting emulators: functions, firestore
! Your requested "node" version "8" doesn't match your global version "10"
+ functions: Emulator started at http://localhost:5001
! No Firestore rules file specified in firebase.json, using default rules.
i firestore: Serving ALL traffic (including WebChannel) on http://localhost:808
0
! firestore: Support for WebChannel on a separate port (8081) is DEPRECATED and
will go away soon. Please use port above instead.
i firestore: Emulator logging to firestore-debug.log
+ firestore: …Run Code Online (Sandbox Code Playgroud) google-cloud-platform firebase-tools google-cloud-functions google-cloud-firestore firebase-cli
我正在尝试在 Firebase 上托管我的静态网站。但即使使用此 cmd 安装 firebase 软件包后 - (npm install -g firebase-tools)
当我尝试运行命令“firebase login”时,它会向我显示此错误
{firebase:术语“firebase”不被识别为 cmdlet、函数、脚本文件或可操作程序的名称。检查名称的拼写,或者如果包含路径,请验证路径是否正确,然后重试。}
我已经安装了很多次 firebase 包但错误仍然存在。分享快照以获得更好的说明。
任何帮助将不胜感激...提前致谢。这里的图像是错误图像的链接
我正在尝试将travis ci集成到我的firebase应用程序上以自动部署,但是失败并显示401错误。这是我的.travis.yml
language: node_js
node_js:
- '8'
deploy:
provider: firebase
token:
secure: "BnzKtrzBaI/uLHoezYpBVqQ/VwhIyil...n0jAuBNrTI="
message: build $TRAVIS_BUILD_NUMBER $TRAVIS_BRANCH/$COMMIT_HASH
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
Error: HTTP Error: 401, Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
Run Code Online (Sandbox Code Playgroud)
我不确定是怎么回事。
我正在尝试将Firebase 身份验证模拟器连接到我的 Flutter 移动项目以执行一些本地测试。不幸的是,似乎无法使用FlutterFire 插件。
启用Firestore或Cloud Functions模拟器没有任何问题,但我找不到身份验证的方法。
有人有想法或最佳实践可以遵循吗?