Javascript 函数未正确部署

Javascript 函数未正确部署,javascript,firebase,web,google-cloud-functions,Javascript,Firebase,Web,Google Cloud Functions,我对云功能有点陌生,试图在firebase上部署我的网站,但在部署云功能时出现了这个错误 ! functions[sendMail(us-central1)]: Deployment error. Function failed on loading user code. Error message: Error: please examine your function logs to see the error cause: https://cloud.google.com/functio

我对云功能有点陌生,试图在firebase上部署我的网站,但在部署云功能时出现了这个错误

!  functions[sendMail(us-central1)]: Deployment error.
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
!  functions[app(us-central1)]: Deployment error.
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
Error: Functions did not deploy properly.

从上面的评论来看,这些函数在localhost上也可以正常工作


问题是package.json和package-lock.json没有正确同步。

以上评论:


问题是package.json和package-lock.json没有正确同步。

我认为,花时间查看这些日志是值得的。请查看错误中提到的URL()。谢谢,伙计,现在问题解决了。我实际上没有同步package.json和package lock。我想说,jsonIt值得您花时间查看这些日志。检查错误中提到的URL()。谢谢,mate,现在问题解决了。我实际上没有同步package.json和package-lock.json。如何同步?删除节点_模块,重新安装。如果不起作用,请删除package-lock.json或warn.lock并重新安装。如何同步?删除节点_模块,重新安装。如果这不起作用,请删除package-lock.json或warn.lock并重新安装。