NPM安装程序包:GeoFireX,Google云功能出错

时间:2019-11-02 09:44:43

标签: javascript node.js firebase npm google-cloud-functions

我正在尝试安装GeoFireX

我按照文档所述执行了以下步骤:

value={{
  state: this.state,
  isAuthenticated: isAuthenticated()

但是当我安装软件包时,我收到此消息:

npm install geofirex
# peer dependencies
npm install rxjs firebase

所以我尝试安装firebase@5.2.0,但消息不断出现。

我正在使用打字稿中的Google Cloud函数代码:

npm WARN geofirex@0.0.6 requires a peer of firebase@5.2.0 but none is installed. You must install peer dependencies yourself.

Firebase的日志给出此错误:

export const functionName = functions.https.onRequest(async (req, res)=>{
      const point = geo.point(40, -119);

      await admin.firestore().collection('myCollection').doc('myDoc')
      .update({'position': point.data});
      res.send(200);
});

我在做什么错了?

非常感谢您!

0 个答案:

没有答案