【发布时间】:2018-06-24 10:18:32
【问题描述】:
我正在使用 Firebase 托管和云功能。当我执行firebase serve --only functions 时出现此错误:
无法启动模拟器。错误:找不到模块'/usr/local/lib/node_modules/firebase-tools/node_modules/grpc/src/node/extension_binary/node-v57-darwin-x64-unknown/grpc_node.node'
我安装了所有需要的依赖项,例如 firebase-tools。 我用this tutorial
有什么想法吗?
【问题讨论】:
-
您确定
npm install -g firebase-tools成功完成了吗? -
是的,我做了很多次
-
它在本地不起作用,但是当我部署它时,它起作用了。谢谢
标签: node.js firebase google-cloud-functions