-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find module 'grpc' #130
Comments
Just to confirm, did you run Additionally, it's recommended that you run Node v.6.11.1 because that's the version which will be running your code in the Cloud Functions environment, as mentioned here. |
Yes I made npm install in the functions directory. I tried again with node v6.11.1. but the same error message appears :( |
What's in your |
I'm was runninginto a similar error trying to run firebase functions locally, and I found something that may address this for you @Lacka90. In my case, I was running I suspect that was a part of the problem, since I may have installed dependencies with The specific error I was getting was:
If I inspect the missing path above, it's got To fix |
Thanks for sharing the fix! |
@laurenzlong I can confirm that the above fix does not work for me. |
For me this is happening because a |
I've been working on debugging this one as well and I believe it's related to firebase/firebase-tools#442 and possibly firebase/firebase-js-sdk#221 (comment) as per the comment. |
This worked form me (I reinstalled firebase tool and update the firebase-functions):- |
@factedu I tried what you suggested. Did not work for me :( |
@connormckelvey What versions of npm are you using? Can you try updating it and see if it resolves the issue? |
I have tried npm versions 5.4 and 3.2 and node versions 8.9.2 and 6.9 and the problem is the same . |
I am using npm 5.5.1 and had problems with grpc at deploying. I installed firebase-admin@~5.5.0 and everything seems to work normally now. |
Will have to try it out as now i am working on mac os sierra. |
This is the repo for grpc node: https://github.com/grpc/grpc-node. Please file specific installation issues there. In my experience, grpc installation issues can usually be resolved by a combination of updating npm and reinstalling, but the grpc team may be able to offer more specific advice. |
We are capturing all grpc installation issues experienced in Firebase CLI in grpc/grpc-node#121 |
Issue Resolved! and removed cap ^ in package.json before firebase version. |
Solved! I had a very similar error and it worked for me when I used |
In my case I had a
and the problem went away |
After I added the firebase functions and trying to deploy an angular app into firebase I got this:
Try running "npm install" in your functions directory before deploying.
Are there any resolution or workaround to this?
My env is
node 8.9.0
npm 5.5.1
firebase 3.14.0
The text was updated successfully, but these errors were encountered: