由于以下错误,无法启动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
,但似乎没有帮助。
任何帮助都感激不尽!
您现在可能已经想到了这一点,但我能够通过做两件事来解决这个问题:
127.0.0.1 localhost