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
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;
}