首页 > 解决方案 > 如何在本地主机上运行 Firebase 云消息传递

问题描述

我尝试运行一个简单的 firebase 云消息应用程序 web。示例应用程序的自述文件说:

1. On the command line run `firebase serve -p 8081` using the Firebase CLI tool to launch a local      server.

这给出了错误

Error: Cannot understand what targets to deploy/serve. If you are using PowerShell make sure you place quotes around any comma-separated lists (ex: --only "functions,firestore").

所以我尝试了

firebase serve -p 8081 .

返回

Having trouble? Try firebase [command] --help

如何让接收消息的本地 Web 应用程序运行?在 Firebase 上托管时会再次出现类似的问题吗?

我被困住了。Firebase 是一系列奇怪的文档,奇怪的结果,所有错误都被其他人遇到过,并且其中任何一个都有很长的线程。

标签: firebasefirebase-cloud-messaging

解决方案


推荐阅读