-
Notifications
You must be signed in to change notification settings - Fork 976
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
grpc installation issues #467
Comments
What OS and Node.js version are you using? |
I received the same error both with NodeJS 8.5.0 and again after downgrading to NodeJS 6.11.3. In both cases I was running on Ubuntu 16.04 LTS |
Looks like OP is running Linux 4.10, tries to install the latest grpc, and fails with a permissions issue on his machine.
Possible root cause: Node and npm were installed under root and into a directory controlled by root. |
node : 8.7.0 |
Same error for me on Windows 7 x64 + Node v8.6.0 or v8.9.1 (tested both) Error raised while wanted to try firestore with node.js, so updating firebase stuff to get the lib then bang, super bug. Looks like a problem with firebase-tools 3.15.3. The file
seems to be referenced but never created. Especially the following part
That does not exists in the C:\Program Files\nodejs\aaa\node_modules\grpc\src directory.
That's a hot topic : firebase/firebase-js-sdk#221 |
Follow-up : OK :) KO :( At this stade you might think older versions could work with firestore. Found a related bug with node-pre-gyp : It appears that a capital letter is used instead of a regular letter, causing the function to not be found. |
problem fixed on my system |
Ok, after several tries, let's just say yarn fails, but npm install works. |
Do you also get issue if you just did: "npm install grpc"? If you do, please file an issue at https://github.com/grpc/grpc-node/issues |
@laurenzlong Thanks a lot and i got the solutin in the above URL I faced a similar problem. For me, the problem seemed to be my antivirus (Kaspersky). Once I disabled it, I was able to install firebase. |
Thanks for sharing! I'm going to leave this issue open so other people can read out the different workarounds. |
I'd like to consolidate grpc installation issues at grpc/grpc-node#121 |
Issue Resolved! and removed cap ^ in package.json before firebase version. |
Issue resolved by removing cap ^ in package.json before firebase dependency. |
Nothing worked for me. What I did, at last, I took grpc folder from some other project node_module folder and placed it into the new one. After that, I did 'npm install' and everything worked smoothly. |
I had the same issue. Tried to re-install, install global, etc and fixed only after this:
Thanks @shubhtrino |
I had the same issue and invested 3 hrs of mine.This works finally.Thanks Sir! @JavaidAhmad |
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
/usr/bin/firebase -> /usr/lib/node_modules/firebase-tools/bin/firebase
node-pre-gyp ERR! Tried to download(undefined): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.4.1/node-v57-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for grpc@1.4.1 and node@8.5.0 (node-v57 ABI) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/firebase-tools/node_modules/grpc/build'
gyp ERR! System Linux 4.10.0-35-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--library=static_library" "--module=/usr/lib/node_modules/firebase-tools/node_modules/grpc/src/node/extension_binary/grpc_node.node" "--module_name=grpc_node" "--module_path=/usr/lib/node_modules/firebase-tools/node_modules/grpc/src/node/extension_binary"
gyp ERR! cwd /usr/lib/node_modules/firebase-tools/node_modules/grpc
gyp ERR! node -v v8.5.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --library=static_library --module=/usr/lib/node_modules/firebase-tools/node_modules/grpc/src/node/extension_binary/grpc_node.node --module_name=grpc_node --module_path=/usr/lib/node_modules/firebase-tools/node_modules/grpc/src/node/extension_binary' (1)
node-pre-gyp ERR! stack at ChildProcess. (/usr/lib/node_modules/firebase-tools/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:125:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:213:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:927:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Linux 4.10.0-35-generic
node-pre-gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/firebase-tools/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /usr/lib/node_modules/firebase-tools/node_modules/grpc
node-pre-gyp ERR! node -v v8.5.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.36
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /usr/lib/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --library=static_library --module=/usr/lib/node_modules/firebase-tools/node_modules/grpc/src/node/extension_binary/grpc_node.node --module_name=grpc_node --module_path=/usr/lib/node_modules/firebase-tools/node_modules/grpc/src/node/extension_binary' (1)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: grpc@1.4.1 (node_modules/firebase-tools/node_modules/grpc):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: grpc@1.4.1 install:
node-pre-gyp install --fallback-to-build --library=static_library
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
The text was updated successfully, but these errors were encountered: