在Firebase云功能的functions目录中运行firebase functions:shell
后,模拟器会启动但无法完成,并允许我在本地运行云功能。
下面是输出
⚠您请求的“节点”版本“ 8”与您的全局版本“ 10”不匹配
✔功能:仿真器始于http://localhost:5001
,然后仿真器就停在这里,它不会前进到这一点,也不允许我运行我的功能。可能是什么问题 下面是完整的调试
[debug] [2019-07-02T16:27:12.712Z]>命令需要范围: [“电子邮件”,“ openid”,“ https://www.googleapis.com/auth/cloudplatformprojects.readonly”,“ https://www.googleapis.com/auth/firebase”,“ https://www.googleapis.com/auth/cloud-platform”“] [debug] [2019-07-02T16:27:12.712Z]>通过登录用户授权 [调试] [2019-07-02T16:27:12.712Z] [iam]检查项目 权限的pullupanddownfirebase [“ firebase.projects.get”] [调试] [2019-07-02T16:27:12.714Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/pullupanddownfirebase:testIamPermissions
[debug] [2019-07-02T16:27:13.094Z] <<< HTTP RESPONSE 200 [警告]⚠ 您请求的“节点”版本“ 8”与您的全局版本不匹配 “ 10” [debug] [2019-07-02T16:27:13.105Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/pullupanddownfirebase
[debug] [2019-07-02T16:27:13.364Z] <<< HTTP RESPONSE 200 [debug] [2019-07-02T16:27:13.365Z] >>> HTTP请求获取 https://mobilesdk-pa.googleapis.com/v1/projects/733277284165:getServerAppConfig [调试] [2019-07-02T16:27:13.536Z] <<< HTTP RESPONSE 200 [信息]✔ 功能:仿真器始于http://localhost:5001 [debug] [2019-07-02T16:27:13.547Z] [功能]观看 “ / Users / a123456 / Desktop / Tile Recovery Cloud 用于云功能...的功能/云功能/功能” [调试] [2019-07-02T16:27:13.849Z]调试:函数运行时已初始化。 [调试] [2019-07-02T16:27:13.850Z]调试:已禁用的运行时功能: {“ functions_config_helper”:true,“ network_filtering”:true,“ timeout”:true,“ memory_limiting”:true,“ protect_env”:true,“ admin_stubs”:true} [调试] [2019-07-02T16:27:13.912Z]调试:firebase-admin已被执行 存根。