firebase-tools: verifyDeveloperNodeModules() fails to discover "firebase-admin"
Related issues
[REQUIRED] Version info
node: 8.16.0
firebase-functions: 2.3.0
firebase-tools: 6.9.1 (NOTE: Works on 6.8.0)
firebase-admin: 7.3.0
I am running this on Windows 10.
[REQUIRED] Test case
A freshly generated firebase project using firebase init
with functions.
[REQUIRED] Steps to reproduce
- Run
npm run start
(orfirebase functions:shell
)
[REQUIRED] Expected behavior
The emulator starts correctly
[REQUIRED] Actual behavior
The following logs are shown:
! The Cloud Functions emulator requires the module "firebase-admin" to be installed. This package is in your package.json, but it's not available. You probably need to run "npm install" in your functions directory.
i functions: Your functions could not be parsed due to an issue with your node_modules (see above)
Were you able to successfully deploy your functions?
Yes, deploying works fine. The deployed function (hello world) as well
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 23
- Comments: 26 (7 by maintainers)
Commits related to this issue
- Fixes #1262 — committed to firebase/firebase-tools by abeisgoat 5 years ago
- Fixes for #1262, #1261, and #1258 — committed to firebase/firebase-tools by abeisgoat 5 years ago
This is a bug in
firebase-tools
versions6.9.0
and6.9.1
. The solution is to downgrade to6.8.0
for now:ref: https://stackoverflow.com/a/56065094/4319131
Experiencing the same issue:
Though the firebase-admin package does exist in node_modules.
@diogolessa Downgrading to firebase-tools 6.8.0 also fixes the problem, is that not an option for you?
Alright folks, we’ve just merged in a fix for this which will go out in
6.9.2
today. We may wait on a fix for #1265 before releasing, but if that doesn’t make it, this will go out as is. Once it’s out, I’ll close this bug, but please re-open if the issue is still happening for you.upgraded from 6.8.0 to 6.9.2 and am now seeing:
This is not currently documented in the firebase docs for running functions locally and definitely needs to be if a fix isn’t already ready.
The fix didn’t stick. We are seeing this error in
"firebase-tools": "^6.10.0"
.We have removed the
^
from our package.json dependency for now to prevent the automatic upgrade on install.I am getting a lot of errors after upgrading to 6.9.2.
Hey folks, sorry about the trouble this issue is causing. For now we recommend downgrading to
6.8.0
while we work on a patch.