TypeError: Cannot read property 'wanted' of undefined:

前端 未结 5 2408
面向向阳花
面向向阳花 2021-02-12 09:22

I have been deploying functions with firebase successfully all day learning how to use it. I was trying to see what happened if I initialized another directory that deploys to t

5条回答
  •  花落未央
    2021-02-12 10:23

    Had the same issue with npm@6.12.0 and firebase-functions@3.3.0.

    TypeError: Cannot read property 'wanted' of undefined
        at /usr/local/lib/node_modules/firebase-tools/lib/checkFirebaseSDKVersion.js:37:51
        at process._tickCallback (internal/process/next_tick.js:68:7)
    

    Fixed by changing in /usr/local/lib/node_modules/firebase-tools/lib/checkFirebaseSDKVersion.js line #37.

    var wanted = (output["firebase-functions"] || {}).wanted;
    var latest = (output["firebase-functions"] || {}).latest;
    

提交回复
热议问题