Tho*_*din 5 firebase firebase-tools google-cloud-functions
我尝试运行功能模拟器firebase emulators:start并收到错误消息:
? firebase emulators:start
i emulators: Starting emulators: functions
? functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: auth, firestore, database, hosting, pubsub, storage
? functions: Using node@14 from host.
i ui: Emulator UI logging to ui-debug.log
i functions: Watching "/Users/inlined/git/junkdrawer/functions" for Cloud Functions...
? functions: Cannot find module '/Users/inlined/git/junkdrawer/functions/node_modules/firebase-functions/lib/providers/https'
Require stack:
- /Users/inlined/.nvm/versions/node/v14.16.0/lib/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js
? Your function was killed because it raised an unhandled error.
Run Code Online (Sandbox Code Playgroud)
对此大家深表歉意,这是我的错。在 SDK 的 3.15.0 和 3.15.1 版本中,firebase-functions我们重构了一些文件层次结构,但没有意识到模拟器团队对未记录的文件/函数进行了猴子修补。
即将推出的 3.15.2 版本firebase-tools可同时处理旧路径和新路径。您可以使用以下方法修复错误:
npm install -g firebase-tools
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
80 次 |
| 最近记录: |