TypeError: Cannot read property 'wanted' of undefined:

前端 未结 5 2469
面向向阳花
面向向阳花 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:18

    I think this issue is caused by a fix in npm 6.10.0, see https://github.com/npm/cli/pull/176.

    A workaround is to modify /usr/lib/node_modules/firebase-tools/lib/checkFirebaseSDKVersion.js (linux). For macOS and nvm, see comments below.

    from:

    if (!output) {
      return;
    }
    

    to:

    if (!output || !output["firebase-functions"]) {
      return;
    }
    

提交回复
热议问题