一个月后,我回到了我的开发环境,运行了firebase serve --only functions。它给了我一些消息,我应该更新我的包。我只是按照说明,在开发机器上本地运行云函数被破坏了:(我从头开始重新启动所有的东西,并将所有依赖项更新到最新版本。不幸的是,我遇到了一些身份验证问题,我没有任何运气:(我得到了这个错误:
Error: Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more informatio
继续尝试让firebase serve再次工作。我刚刚问了这个问题(得到了一个很好的回答,谢谢):
在执行npm list firebase-admin时,我现在看到了预期的输出-- firebase-admin@7.3.0。
然而,firebase serve仍然不能工作。我明白了:
! Your requested "node" version "6" doesn't match your global version "10"
...
! The Cloud Functions emulator requires the mod
在尝试使用云函数仿真器时,我收到一条消息,指出: function ignored because the firestore emulator does not exist or is not running 我试着在这里提到:(Firestore/Firebase Emulator Not Running)。 我的函数/package.json如下所示: {
"name": "functions",
"description": "Cloud Functions for Firebase",
"scrip
更新到最新的firebase SDK和工具后 npm install firebase-functions@latest firebase-admin@latest --save
npm install -g firebase-tools 在尝试部署我的firebase函数时,我开始收到以下错误: TypeError: instance.INTERNAL.registerComponent is not a function
at registerDatabase (/Users/jr/projects/docavea/functions/node_modules/@firebase
运行以下命令时:
npm --prefix "$RESOURCE_DIR" run lint
它返回以下错误:
npm ERR! missing script: lint
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\HP\AppData\Roaming\npm-cache\_logs\2018-04-13T01_27_59_009Z-debug.log
Error: functions predeploy error: Command terminated with non-ze
当我尝试运行Angular 7.2和Firebase的全新安装时,我似乎得到了这个错误:
ERROR in node_modules/@angular/fire/firebase.app.module.d.ts(17,22): error TS2420: Class 'FirebaseApp' incorrectly implements interface 'App'.
Property 'performance' is missing in type 'FirebaseApp' but required in type &
我一整天都在努力让我的函数在本地运行,但我不知道为什么它总是说我没有函数。我使用的是类型记录,所以我在folder文件夹中运行了tsc,然后运行了sudo firebase serve --only functions,但是我得到了以下错误:
i functions: No HTTPS functions found.
Use firebase functions:shell if you would like to emulate other types of functions.
编辑:,我尝试在没有sudo的情况下为函数提供服务,但是我得到了权限问题:
由于以下错误,无法启动firebase serve --only functions,hosting:
⚠ functions: Failed to load functions source code. Ensure that you have the latest SDK by running npm i --save firebase-functions inside the functions directory.
⚠ functions: Error from emulator. Error: Timeout waiting for emulator start
我已经尝试按照f