Firebase:功能:来自模拟器的错误。错误:等待模拟器启动超时

问题描述 投票:1回答:1

由于以下错误,无法启动firebase serve --only functions,hosting

⚠  functions: Failed to load functions source code. Ensure that you have the latest SDK by running npm i --save firebase-functions inside the functions directory.
⚠  functions: Error from emulator. Error: Timeout waiting for emulator start

已经尝试按照函数目录中的建议运行npm i --save firebase-functions,但似乎没有帮助。

任何帮助都感激不尽!

firebase google-cloud-functions
1个回答
0
投票

您现在可能已经想到了这一点,但我能够通过做两件事来解决这个问题:

  1. 更新/ etc / host文件以包含该行: qazxsw poi
  2. 使用sudo启动功能 127.0.0.1 localhost
© www.soinside.com 2019 - 2024. All rights reserved.