[英]Could not deploy functions on firebase
运行命令行firebase deploy --only functions
,出现以下错误:
我多次尝试运行部署命令,日志显示不同的消息,这些是最后一条:
11:13:12.563 PM
api
Error: function terminated. Recommended action: inspect logs for termination reason. Function cannot be initialized.
11:13:12.615 PM
api
{"@type":"type.googleapis.com/google.cloud.audit.AuditLog","status":{"code":3,"message":"Function failed on loading user code. Error message: Error: please examine your function logs to see the error cause: https://cloud.google.com/functions/docs/monitoring/logging#viewing_logs"},"authenticationInfo":{"principalEmail":"taobardhi@gmail.com"},"serviceName":"cloudfunctions.googleapis.com","methodName":"google.cloud.functions.v1.CloudFunctionsService.UpdateFunction","resourceName":"projects/clone-react-dfee2/locations/us-central1/functions/api"}
在部署云功能时,我在 firebase 控制台上遇到了类似的错误"code": 3
。
对我来说,使用正确的版本号在package.json
文件中添加模块依赖项并运行npm
install (有0 vulnerability
)是有效的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.