firebase - 如何在本地主机上运行 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 是一系列奇怪的文档,奇怪的结果,所有错误都被其他人遇到过,并且其中任何一个都有很长的线程。
解决方案
推荐阅读
- c++ - C++ Windows 凭据提供程序进度屏幕
- youtube - Youtube API - 在普通帐户和品牌帐户之间切换
- javascript - 循环 ajax 结果并用 id 替换所有元素
- sql-server - T-SQL 未正确执行聚合的算术计算
- sql - 如果 SQL 中的第二列值不同,则计算一列中的不同值
- qualtrics - 您如何比较 qualtrics 中的配额计数?
- geoserver - 可以一步添加多个图层到 GeoServer 吗?
- php - 在 php 和 iis 上记录 404 url
- laravel - 在用户模型上检查另一个表上的变量的方法
- python - .std() & .skew() 用 .rolling 给出错误答案