Firebase-Functions error after update? what can i do?

后端 未结 2 447
暖寄归人
暖寄归人 2020-12-06 06:56

I updated my firebase-functions and now I get this error in the firebase console. The code is still the same but I get an error now:

/srv/node_modules/@google         


        
相关标签:
2条回答
  • 2020-12-06 07:37

    You can also get this error if you are running node v8. Upgrading to node v10 resolves this error.

    If you are managing your node version using nvm, then run:

    nvm install v10 --lts
    

    I think it is a better solution then downgrading firebase-admin library.

    0 讨论(0)
  • 2020-12-06 07:42

    Downgrade firebase-admin and firebase-functions to version: "firebase-admin": "^8.10.0", "firebase-functions": "^3.6.1" and it will work.

    Thanks to Marcel Hoekstra for posting this in the comments.

    0 讨论(0)
提交回复
热议问题