我正在尝试部署到云功能

I am trying to deploying to cloud function

当我尝试使用 firebase deploy 部署我的项目时。 我导致部署错误。

我的云函数

const function = require("firebase-functions");

exports.hello = function.region("asia-east2").https.onRequest((req, 
res) => {
const message = req.query.message || req.body.message || "Hello 
World!";
res.status(200).send(message);
});

错误:

protoPayload: {
@type: "type.googleapis.com/google.cloud.audit.AuditLog"
status: {
code: 3
message: "Build failed: Build error details not available. Please check the logs at https://console.cloud.google.com/logs/viewer?project=cirrusly-d811c&advancedFilter=resource.type%3Dbuild%0Aresource.labels.build_id%3D8485e789-078b-4499-bf57-f1905d38c1c3%0AlogName%3Dprojects%2Fcirrusly-d811c%2Flogs%2Fcloudbuild"
}
authenticationInfo: {1}
serviceName: "cloudfunctions.googleapis.com"
methodName: "google.cloud.functions.v1.CloudFunctionsService.CreateFunction"
resourceName: "projects/cirrusly-d811c/locations/asia-east2/functions/hello"
}

我的日志

Deployment error.
Build failed: Build error details not available. Please check the logs at https://console.cloud.google.com/logs/viewer?project=cirrusly-d811c&advancedFilter=resource.type%3Dbuild%0Aresource.labels.build_id%3D3bf8b169-4ea1-4aaa-84c9-ff01e67e7e33%0AlogName%3Dprojects%2Fcirrusly-d811c%2Flogs%2Fcloudbuild

使用稳定版node.js v14.15.5。这对我有用。