Skip to content
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

Failed to install grpc (version 1.0.1) #8649

Closed
jcastill0 opened this issue Nov 6, 2016 · 29 comments
Closed

Failed to install grpc (version 1.0.1) #8649

jcastill0 opened this issue Nov 6, 2016 · 29 comments
Assignees
Milestone

Comments

@jcastill0
Copy link

On both MacOS and Ubuntu 16
% npm install grpc

grpc@1.0.1 install /Users/jcastillo/dev/git/speech/src/node_modules/grpc
node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(404): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.0.1/node-v51-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for grpc@1.0.1 and node@7.0.0 (node-v51 ABI) (falling back to source compile with node-gyp)
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/usr/local/homebrew/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in
globals()[__func_name] = __get_hash(__func_name)
File "/usr/local/homebrew/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "/usr/local/homebrew/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in
globals()[__func_name] = __get_hash(__func_name)
File "/usr/local/homebrew/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
File "/usr/local/homebrew/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in
globals()[__func_name] = __get_hash(__func_name)
File "/usr/local/homebrew/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
File "/usr/local/homebrew/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in
globals()[__func_name] = __get_hash(__func_name)
File "/usr/local/homebrew/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
File "/usr/local/homebrew/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in
globals()[__func_name] = __get_hash(__func_name)
File "/usr/local/homebrew/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
File "/usr/local/homebrew/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in
globals()[__func_name] = __get_hash(__func_name)
File "/usr/local/homebrew/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha512
Traceback (most recent call last):
File "/usr/local/homebrew/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 16, in
sys.exit(gyp.script_main())
File "/usr/local/homebrew/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 545, in script_main
return main(sys.argv[1:])
File "/usr/local/homebrew/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 538, in main
return gyp_main(args)
File "/usr/local/homebrew/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 514, in gyp_main
options.duplicate_basename_check)
File "/usr/local/homebrew/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 98, in Load
generator.CalculateVariables(default_variables, params)
File "/usr/local/homebrew/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 77, in CalculateVariables
import gyp.generator.xcode as xcode_generator
File "/usr/local/homebrew/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py", line 7, in
import gyp.xcodeproj_file
File "/usr/local/homebrew/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py", line 152, in
_new_sha1 = hashlib.sha1
AttributeError: 'module' object has no attribute 'sha1'
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/homebrew/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Darwin 15.6.0
gyp ERR! command "/usr/local/homebrew/Cellar/node/7.0.0/bin/node" "/usr/local/homebrew/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/Users/jcastillo/dev/git/speech/src/node_modules/grpc/src/node/extension_binary/grpc_node.node" "--module_name=grpc_node" "--module_path=/Users/jcastillo/dev/git/speech/src/node_modules/grpc/src/node/extension_binary"
gyp ERR! cwd /Users/jcastillo/dev/git/speech/src/node_modules/grpc
gyp ERR! node -v v7.0.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp configure --fallback-to-build --module=/Users/jcastillo/dev/git/speech/src/node_modules/grpc/src/node/extension_binary/grpc_node.node --module_name=grpc_node --module_path=/Users/jcastillo/dev/git/speech/src/node_modules/grpc/src/node/extension_binary' (1)
node-pre-gyp ERR! stack at ChildProcess. (/Users/jcastillo/dev/git/speech/src/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:877:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Darwin 15.6.0
node-pre-gyp ERR! command "/usr/local/homebrew/Cellar/node/7.0.0/bin/node" "/Users/jcastillo/dev/git/speech/src/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/jcastillo/dev/git/speech/src/node_modules/grpc
node-pre-gyp ERR! node -v v7.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.31
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp configure --fallback-to-build --module=/Users/jcastillo/dev/git/speech/src/node_modules/grpc/src/node/extension_binary/grpc_node.node --module_name=grpc_node --module_path=/Users/jcastillo/dev/git/speech/src/node_modules/grpc/src/node/extension_binary' (1)
npm WARN speech@1.0.0 No description
npm WARN speech@1.0.0 No repository field.
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/homebrew/Cellar/node/7.0.0/bin/node" "/usr/local/homebrew/bin/npm" "install" "grpc"
npm ERR! node v7.0.0
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE

npm ERR! grpc@1.0.1 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc@1.0.1 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the grpc package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs grpc
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls grpc
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/jcastillo/dev/git/speech/src/npm-debug.log

@Vloz
Copy link

Vloz commented Nov 7, 2016

Same thing on Linux 4.4.28-2-MANJARO (Archlinux):


> grpc@1.0.1 install /home/vloz/projets/teddy-where/node_modules/grpc
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(404): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.0.1/node-v51-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for grpc@1.0.1 and node@7.0.0 (node-v51 ABI) (falling back to source compile with node-gyp) 
gyp ERR! UNCAUGHT EXCEPTION 
gyp ERR! stack TypeError: Cannot read property 'length' of undefined
gyp ERR! stack     at parse (/home/vloz/projets/teddy-where/node_modules/semver/semver.js:239:14)
gyp ERR! stack     at Function.valid (/home/vloz/projets/teddy-where/node_modules/semver/semver.js:255:11)
gyp ERR! stack     at processRelease (/home/vloz/projets/teddy-where/node_modules/node-gyp/lib/process-release.js:16:25)
gyp ERR! stack     at configure (/home/vloz/projets/teddy-where/node_modules/node-gyp/lib/configure.js:35:17)
gyp ERR! stack     at Object.self.commands.(anonymous function) [as configure] (/home/vloz/projets/teddy-where/node_modules/node-gyp/lib/node-gyp.js:66:37)
gyp ERR! stack     at run (/home/vloz/projets/teddy-where/node_modules/node-gyp/bin/node-gyp.js:72:30)
gyp ERR! stack     at Object.<anonymous> (/home/vloz/projets/teddy-where/node_modules/node-gyp/bin/node-gyp.js:133:1)
gyp ERR! stack     at Module._compile (module.js:573:32)
gyp ERR! stack     at Object.Module._extensions..js (module.js:582:10)
gyp ERR! stack     at Module.load (module.js:490:32)
gyp ERR! System Linux 4.4.28-2-MANJARO
gyp ERR! command "/usr/bin/node" "/home/vloz/projets/teddy-where/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/vloz/projets/teddy-where/node_modules/grpc/src/node/extension_binary/grpc_node.node" "--module_name=grpc_node" "--module_path=/home/vloz/projets/teddy-where/node_modules/grpc/src/node/extension_binary"
gyp ERR! cwd /home/vloz/projets/teddy-where/node_modules/grpc
gyp ERR! node -v v7.0.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! This is a bug in `node-gyp`.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR!     <https://github.com/nodejs/node-gyp/issues>
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /home/vloz/projets/teddy-where/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/vloz/projets/teddy-where/node_modules/grpc/src/node/extension_binary/grpc_node.node --module_name=grpc_node --module_path=/home/vloz/projets/teddy-where/node_modules/grpc/src/node/extension_binary' (7)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/vloz/projets/teddy-where/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:877:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Linux 4.4.28-2-MANJARO
node-pre-gyp ERR! command "/usr/bin/node" "/home/vloz/projets/teddy-where/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/vloz/projets/teddy-where/node_modules/grpc
node-pre-gyp ERR! node -v v7.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.31
node-pre-gyp ERR! not ok 
Failed to execute '/usr/bin/node /home/vloz/projets/teddy-where/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/vloz/projets/teddy-where/node_modules/grpc/src/node/extension_binary/grpc_node.node --module_name=grpc_node --module_path=/home/vloz/projets/teddy-where/node_modules/grpc/src/node/extension_binary' (7)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.15: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN Teddywhere@2.0.0 No repository field.
npm ERR! Linux 4.4.28-2-MANJARO
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "grpc"
npm ERR! node v7.0.0
npm ERR! npm  v3.10.9
npm ERR! code ELIFECYCLE

npm ERR! grpc@1.0.1 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the grpc@1.0.1 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the grpc package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs grpc
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls grpc
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/vloz/projets/teddy-where/npm-debug.log

@murgatroid99 murgatroid99 self-assigned this Nov 7, 2016
@murgatroid99
Copy link
Member

Our build system is not yet set up to build for Node 7. I would recommend downgrading to Node 6 and trying again.

@jcastill0
Copy link
Author

I tried to install it on Ubuntu 16 this time version v6.9.1 of NodeJS. Same result.

npm install --save @google-cloud/speech

grpc@1.0.1 install /home/vagrant/speech/node/node_modules/grpc
node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(undefined): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.0.1/node-v48-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for grpc@1.0.1 and node@6.9.1 (node-v48 ABI) (falling back to source compile with node-gyp)
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: read ECONNRESET
gyp ERR! stack at exports._errnoException (util.js:1026:11)
gyp ERR! stack at TLSWrap.onread (net.js:569:26)
gyp ERR! System Linux 4.4.0-45-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/vagrant/speech/node/node_modules/grpc/src/node/extension_binary/grpc_node.node" "--module_name=grpc_node" "--module_path=/home/vagrant/speech/node/node_modules/grpc/src/node/extension_binary"
gyp ERR! cwd /home/vagrant/speech/node/node_modules/grpc
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/vagrant/speech/node/node_modules/grpc/src/node/extension_binary/grpc_node.node --module_name=grpc_node --module_path=/home/vagrant/speech/node/node_modules/grpc/src/node/extension_binary' (1)
node-pre-gyp ERR! stack at ChildProcess. (/home/vagrant/speech/node/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:877:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Linux 4.4.0-45-generic
node-pre-gyp ERR! command "/usr/bin/nodejs" "/home/vagrant/speech/node/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/vagrant/speech/node/node_modules/grpc
node-pre-gyp ERR! node -v v6.9.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.31
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/vagrant/speech/node/node_modules/grpc/src/node/extension_binary/grpc_node.node --module_name=grpc_node --module_path=/home/vagrant/speech/node/node_modules/grpc/src/node/extension_binary' (1)
/home/vagrant/speech/node
├─┬ @google-cloud/common@0.7.1
│ ├── array-uniq@1.0.3
│ ├── arrify@1.0.1
│ ├─┬ concat-stream@1.5.2
│ │ └── typedarray@0.0.6
│ ├─┬ create-error-class@3.0.2
│ │ └── capture-stack-trace@1.0.0
│ ├─┬ dot-prop@2.4.0
│ │ └── is-obj@1.0.1
│ ├── ent@2.2.0
│ ├── extend@3.0.0
│ ├─┬ google-auto-auth@0.3.0
│ │ ├─┬ google-auth-library@0.9.9
│ │ │ ├─┬ gtoken@1.2.1
│ │ │ │ ├─┬ google-p12-pem@0.1.0
│ │ │ │ │ └── node-forge@0.6.45
│ │ │ │ └── mime@1.3.4
│ │ │ ├─┬ jws@3.0.0
│ │ │ │ ├─┬ base64url@1.0.6
│ │ │ │ │ ├─┬ concat-stream@1.4.10
│ │ │ │ │ │ └─┬ readable-stream@1.1.14
│ │ │ │ │ │ └── isarray@0.0.1
│ │ │ │ │ └─┬ meow@2.0.0
│ │ │ │ │ ├─┬ camelcase-keys@1.0.0
│ │ │ │ │ │ ├── camelcase@1.2.1
│ │ │ │ │ │ └── map-obj@1.0.1
│ │ │ │ │ ├─┬ indent-string@1.2.2
│ │ │ │ │ │ ├── get-stdin@4.0.1
│ │ │ │ │ │ └─┬ repeating@1.1.3
│ │ │ │ │ │ └─┬ is-finite@1.0.2
│ │ │ │ │ │ └── number-is-nan@1.0.1
│ │ │ │ │ ├── minimist@1.2.0
│ │ │ │ │ └── object-assign@1.0.0
│ │ │ │ └─┬ jwa@1.0.2
│ │ │ │ ├── base64url@0.0.6
│ │ │ │ ├── buffer-equal-constant-time@1.0.1
│ │ │ │ └─┬ ecdsa-sig-formatter@1.0.7
│ │ │ │ └── base64-url@1.3.3
│ │ │ ├── lodash.noop@3.0.1
│ │ │ ├─┬ request@2.74.0
│ │ │ │ ├── bl@1.1.2
│ │ │ │ ├─┬ form-data@1.0.1
│ │ │ │ │ └─┬ async@2.1.2
│ │ │ │ │ └── lodash@4.16.6
│ │ │ │ └── qs@6.2.1
│ │ │ └── string-template@0.2.1
│ │ └── object-assign@3.0.0
│ ├── google-proto-files@0.8.4
│ ├── is@3.2.0
│ ├── methmeth@1.1.0
│ ├── modelo@4.2.0
│ ├─┬ request@2.78.0
│ │ ├── aws-sign2@0.6.0
│ │ ├── aws4@1.5.0
│ │ ├── caseless@0.11.0
│ │ ├─┬ combined-stream@1.0.5
│ │ │ └── delayed-stream@1.0.0
│ │ ├── forever-agent@0.6.1
│ │ ├─┬ form-data@2.1.2
│ │ │ └── asynckit@0.4.0
│ │ ├─┬ har-validator@2.0.6
│ │ │ ├─┬ chalk@1.1.3
│ │ │ │ ├── ansi-styles@2.2.1
│ │ │ │ ├── escape-string-regexp@1.0.5
│ │ │ │ ├─┬ has-ansi@2.0.0
│ │ │ │ │ └── ansi-regex@2.0.0
│ │ │ │ ├── strip-ansi@3.0.1
│ │ │ │ └── supports-color@2.0.0
│ │ │ ├─┬ commander@2.9.0
│ │ │ │ └── graceful-readlink@1.0.1
│ │ │ ├─┬ is-my-json-valid@2.15.0
│ │ │ │ ├── generate-function@2.0.0
│ │ │ │ ├─┬ generate-object-property@1.2.0
│ │ │ │ │ └── is-property@1.0.2
│ │ │ │ └── jsonpointer@4.0.0
│ │ │ └─┬ pinkie-promise@2.0.1
│ │ │ └── pinkie@2.0.4
│ │ ├─┬ hawk@3.1.3
│ │ │ ├── boom@2.10.1
│ │ │ ├── cryptiles@2.0.5
│ │ │ ├── hoek@2.16.3
│ │ │ └── sntp@1.0.9
│ │ ├─┬ http-signature@1.1.1
│ │ │ ├── assert-plus@0.2.0
│ │ │ ├─┬ jsprim@1.3.1
│ │ │ │ ├── extsprintf@1.0.2
│ │ │ │ ├── json-schema@0.2.3
│ │ │ │ └── verror@1.3.6
│ │ │ └─┬ sshpk@1.10.1
│ │ │ ├── asn1@0.2.3
│ │ │ ├── assert-plus@1.0.0
│ │ │ ├── bcrypt-pbkdf@1.0.0
│ │ │ ├─┬ dashdash@1.14.0
│ │ │ │ └── assert-plus@1.0.0
│ │ │ ├── ecc-jsbn@0.1.1
│ │ │ ├─┬ getpass@0.1.6
│ │ │ │ └── assert-plus@1.0.0
│ │ │ ├── jodid25519@1.0.2
│ │ │ ├── jsbn@0.1.0
│ │ │ └── tweetnacl@0.14.3
│ │ ├── is-typedarray@1.0.0
│ │ ├── isstream@0.1.2
│ │ ├── json-stringify-safe@5.0.1
│ │ ├─┬ mime-types@2.1.12
│ │ │ └── mime-db@1.24.0
│ │ ├── node-uuid@1.4.7
│ │ ├── oauth-sign@0.8.2
│ │ ├── qs@6.3.0
│ │ ├── stringstream@0.0.5
│ │ ├─┬ tough-cookie@2.3.2
│ │ │ └── punycode@1.4.1
│ │ └── tunnel-agent@0.4.3
│ ├── retry-request@1.3.1
│ ├─┬ split-array-stream@1.0.0
│ │ ├── async@1.4.2
│ │ └── is-stream-ended@0.1.0
│ ├─┬ stream-events@1.0.1
│ │ └── stubs@1.1.2
│ ├── string-format-obj@1.1.0
│ └─┬ through2@2.0.1
│ └── xtend@4.0.1
├── events-intercept@2.0.0
├── propprop@0.3.1
└─┬ pumpify@1.3.5
├─┬ duplexify@3.5.0
│ ├── end-of-stream@1.0.0
│ ├─┬ readable-stream@2.0.6
│ │ ├── core-util-is@1.0.2
│ │ ├── isarray@1.0.0
│ │ ├── process-nextick-args@1.0.7
│ │ ├── string_decoder@0.10.31
│ │ └── util-deprecate@1.0.2
│ └── stream-shift@1.0.0
├── inherits@2.0.3
└─┬ pump@1.0.1
├── end-of-stream@1.1.0
└─┬ once@1.3.3
└── wrappy@1.0.2

npm WARN enoent ENOENT: no such file or directory, open '/home/vagrant/speech/node/package.json'
npm WARN node No description
npm WARN node No repository field.
npm WARN node No README data
npm WARN node No license field.
npm ERR! Linux 4.4.0-45-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--save" "@google-cloud/speech"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE

npm ERR! grpc@1.0.1 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc@1.0.1 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the grpc package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs grpc
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls grpc
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/vagrant/speech/node/npm-debug.log

@murgatroid99
Copy link
Member

That is bizarre. The file that it says to download (https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.0.1/node-v48-linux-x64.tar.gz) absolutely exists. Do you have access to storage.googleapis.com?

@jcastill0
Copy link
Author

jcastill0 commented Nov 9, 2016

I just tried to go to that site via the browser, but I got an error apparently expecting some API header.
If I go directly to that site via the browser, I can download the file

@murgatroid99
Copy link
Member

What happens if you try to download that file in your browser?

@jcastill0
Copy link
Author

I can download it to the machine with no problem (the .tar.gz file)

When attempting to do the same on my Mac (which is running Node 7) I get a similar error:
npm install --save @google-cloud/speech

grpc@1.0.1 install /Users/jcastillo/dev/git/speech/node/node_modules/grpc
node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(404): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.0.1/node-v51-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for grpc@1.0.1 and node@7.0.0 (node-v51 ABI) (falling back to source compile with node-gyp)
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
....

@murgatroid99
Copy link
Member

I saw that you got that with Node 7. The difference is that the file for Node 6 actually exists, and the file for Node 7 doesn't exist.

@wesleytodd
Copy link

When can we expect an update to support the current node version?

@Jaisonbabu
Copy link

facing same problem here. Is there any other alternative or we just need to wait till the next release?

@murgatroid99
Copy link
Member

The alternative, for now, is to use Node 6

@tonyfahrion
Copy link

As a note: npm install grpc@1.0.1 with nodejs

  • 7.1.0
  • 7.2.0
  • 7.2.1
  • 7.3.0

on ubuntu 16.04 amd64 grpc succeeds again (compilation previously failed)

But the error message

node-pre-gyp ERR! Tried to download(404): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.0.1/node-v51-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for grpc@1.0.1 and node@7.3.0 (node-v51 ABI) (falling back to source compile with node-gyp)

still exists. Trying to download the mentioned file manually failed either with an 404.

nodejs --version
  v7.1.0
npm --version # lt 7.3.0
  3.10.10

or

nodejs --version
  v7.3.0
npm --version
  3.10.10

@sulliwane
Copy link

@twolfy I confirm that with Ubuntu 16.04, I can npm install grpc with success using node v7.3.0.

What is really strange is that on Centos 7, with gcc 5.4 and node v7.3.0, it fails on the error:

AR(target) Release/obj.target/libgpr.a
 COPY Release/libgpr.a
 CXX(target) Release/obj.target/grpc_node/src/node/ext/byte_buffer.o
In file included from ../../nan/nan.h:46:0,
                from ../src/node/ext/byte_buffer.cc:37:
~/.node-gyp/7.3.0/include/node/uv.h:24:0: error: unterminated #ifndef
#ifndef UV_H
^
In file included from ../../nan/nan.h:48:0,
                from ../src/node/ext/byte_buffer.cc:37:
~/.node-gyp/7.3.0/include/node/node_buffer.h:7:1: error: expected identifier before ‘namespace’
namespace node {
^
~/.node-gyp/7.3.0/include/node/node_buffer.h:7:1: error: expected ‘,’ or ‘...’ before ‘namespace’
In file included from ../include/grpc/impl/codegen/atm.h:83:0,
                from ../include/grpc/impl/codegen/sync_generic.h:38,
                from ../include/grpc/impl/codegen/sync.h:57,
                from ../include/grpc/impl/codegen/slice.h:37,
                from ../include/grpc/impl/codegen/slice_buffer.h:37,
                from ../include/grpc/impl/codegen/byte_buffer.h:38,
                from ../include/grpc/byte_buffer.h:37,
                from ../include/grpc/grpc.h:39,
                from ../src/node/ext/byte_buffer.cc:38:
../include/grpc/impl/codegen/atm_gcc_atomic.h:41:25: error: expected ‘)’ before ‘;’ token
typedef intptr_t gpr_atm;
                        ^
../include/grpc/impl/codegen/atm_gcc_atomic.h:57:44: error: ‘gpr_atm_no_barrier_cas’ declared as an ‘inline’ variable
static __inline int gpr_atm_no_barrier_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
                                           ^
../include/grpc/impl/codegen/atm_gcc_atomic.h:57:44: error: ‘gpr_atm’ was not declared in this scope
../include/grpc/impl/codegen/atm_gcc_atomic.h:57:53: error: ‘p’ was not declared in this scope
static __inline int gpr_atm_no_barrier_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
                                                    ^
../include/grpc/impl/codegen/atm_gcc_atomic.h:57:56: error: ‘gpr_atm’ was not declared in this scope
static __inline int gpr_atm_no_barrier_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
                                                       ^
../include/grpc/impl/codegen/atm_gcc_atomic.h:57:67: error: ‘gpr_atm’ was not declared in this scope
static __inline int gpr_atm_no_barrier_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
                                                                  ^
../include/grpc/impl/codegen/atm_gcc_atomic.h:57:76: error: expression list treated as compound expression in initializer [-fpermissive]
static __inline int gpr_atm_no_barrier_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
                                                                           ^
../include/grpc/impl/codegen/atm_gcc_atomic.h:57:78: error: expected ‘,’ or ‘;’ before ‘{’ token
static __inline int gpr_atm_no_barrier_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
                                                                             ^
../include/grpc/impl/codegen/atm_gcc_atomic.h:62:37: error: ‘gpr_atm_acq_cas’ declared as an ‘inline’ variable
static __inline int gpr_atm_acq_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
                                    ^
../include/grpc/impl/codegen/atm_gcc_atomic.h:62:37: error: ‘gpr_atm’ was not declared in this scope
../include/grpc/impl/codegen/atm_gcc_atomic.h:62:46: error: ‘p’ was not declared in this scope
static __inline int gpr_atm_acq_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
                                             ^
../include/grpc/impl/codegen/atm_gcc_atomic.h:62:49: error: ‘gpr_atm’ was not declared in this scope
static __inline int gpr_atm_acq_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
                                                ^
../include/grpc/impl/codegen/atm_gcc_atomic.h:62:60: error: ‘gpr_atm’ was not declared in this scope
static __inline int gpr_atm_acq_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
                                                           ^
../include/grpc/impl/codegen/atm_gcc_atomic.h:62:69: error: expression list treated as compound expression in initializer [-fpermissive]
static __inline int gpr_atm_acq_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
                                                                    ^
../include/grpc/impl/codegen/atm_gcc_atomic.h:62:71: error: expected ‘,’ or ‘;’ before ‘{’ token
static __inline int gpr_atm_acq_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
                                                                      ^
../include/grpc/impl/codegen/atm_gcc_atomic.h:67:37: error: ‘gpr_atm_rel_cas’ declared as an ‘inline’ variable
static __inline int gpr_atm_rel_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
                                    ^
../include/grpc/impl/codegen/atm_gcc_atomic.h:67:37: error: ‘gpr_atm’ was not declared in this scope
../include/grpc/impl/codegen/atm_gcc_atomic.h:67:46: error: ‘p’ was not declared in this scope
static __inline int gpr_atm_rel_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
                                             ^
../include/grpc/impl/codegen/atm_gcc_atomic.h:67:49: error: ‘gpr_atm’ was not declared in this scope
static __inline int gpr_atm_rel_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
                                                ^
../include/grpc/impl/codegen/atm_gcc_atomic.h:67:60: error: ‘gpr_atm’ was not declared in this scope
static __inline int gpr_atm_rel_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
                                                           ^
../include/grpc/impl/codegen/atm_gcc_atomic.h:67:69: error: expression list treated as compound expression in initializer [-fpermissive]
static __inline int gpr_atm_rel_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
                                                                    ^
../include/grpc/impl/codegen/atm_gcc_atomic.h:67:71: error: expected ‘,’ or ‘;’ before ‘{’ token
static __inline int gpr_atm_rel_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
                                                                      ^
In file included from ../include/grpc/impl/codegen/sync.h:57:0,
                from ../include/grpc/impl/codegen/slice.h:37,
../src/node/ext/byte_buffer.cc:99:5: error: ‘Nan’ has not been declared
    Nan::New<Number>(::node::Buffer::Length(slowBuffer)),
    ^
../src/node/ext/byte_buffer.cc:99:20: error: expected primary-expression before ‘>’ token
    Nan::New<Number>(::node::Buffer::Length(slowBuffer)),
                   ^
../src/node/ext/byte_buffer.cc:99:30: error: ‘node::Buffer’ has not been declared
    Nan::New<Number>(::node::Buffer::Length(slowBuffer)),
                             ^
../src/node/ext/byte_buffer.cc:100:5: error: ‘Nan’ has not been declared
    Nan::New<Number>(0)
    ^
../src/node/ext/byte_buffer.cc:100:20: error: expected primary-expression before ‘>’ token
    Nan::New<Number>(0)
                   ^
../src/node/ext/byte_buffer.cc:102:20: error: expected primary-expression before ‘>’ token
  MaybeLocal<Object> fastBuffer = Nan::NewInstance(bufferConstructor,
                   ^
../src/node/ext/byte_buffer.cc:102:22: error: ‘fastBuffer’ was not declared in this scope
  MaybeLocal<Object> fastBuffer = Nan::NewInstance(bufferConstructor,
                     ^
../src/node/ext/byte_buffer.cc:102:35: error: ‘Nan’ has not been declared
  MaybeLocal<Object> fastBuffer = Nan::NewInstance(bufferConstructor,
                                  ^
../src/node/ext/byte_buffer.cc:104:10: error: ‘scope’ was not declared in this scope
  return scope.Escape(fastBuffer.ToLocalChecked());
         ^
../src/node/ext/byte_buffer.cc: At global scope:
../src/node/ext/byte_buffer.cc:107:1: error: expected ‘}’ at end of input
}  // namespace grpc
^
In file included from ../include/grpc/impl/codegen/atm.h:83:0,
                from ../include/grpc/impl/codegen/sync_generic.h:38,
                from ../include/grpc/impl/codegen/sync.h:57,
                from ../include/grpc/impl/codegen/slice.h:37,
                from ../include/grpc/impl/codegen/slice_buffer.h:37,
                from ../include/grpc/impl/codegen/byte_buffer.h:38,
                from ../include/grpc/byte_buffer.h:37,
                from ../include/grpc/grpc.h:39,
                from ../src/node/ext/byte_buffer.cc:38:
../include/grpc/impl/codegen/atm_gcc_atomic.h:57:21: warning: ‘gpr_atm_no_barrier_cas’ defined but not used [-Wunused-variable]
static __inline int gpr_atm_no_barrier_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
                    ^
../include/grpc/impl/codegen/atm_gcc_atomic.h:62:21: warning: ‘gpr_atm_acq_cas’ defined but not used [-Wunused-variable]
static __inline int gpr_atm_acq_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
                    ^
../include/grpc/impl/codegen/atm_gcc_atomic.h:67:21: warning: ‘gpr_atm_rel_cas’ defined but not used [-Wunused-variable]
static __inline int gpr_atm_rel_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
                    ^
make: *** [Release/obj.target/grpc_node/src/node/ext/byte_buffer.o] Error 1
make: Leaving directory `~/production/myproject/node_modules/grpc/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (~/.nvm/versions/node/v7.3.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 3.10.0-514.2.2.el7.x86_64
gyp ERR! command "~/.nvm/versions/node/v7.3.0/bin/node" "~/.nvm/versions/node/v7.3.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=~/production/myproject/node_modules/grpc/src/node/extension_binary/grpc_node.node" "--module_name=grpc_node" "--module_path=~/production/myproject/node_modules/grpc/src/node/extension_binary"
gyp ERR! cwd ~/production/myproject/node_modules/grpc
gyp ERR! node -v v7.3.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '~/.nvm/versions/node/v7.3.0/bin/node ~/.nvm/versions/node/v7.3.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=~/production/myproject/node_modules/grpc/src/node/extension_binary/grpc_node.node --module_name=grpc_node --module_path=~/production/myproject/node_modules/grpc/src/node/extension_binary' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (~/production/myproject/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:885:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Linux 3.10.0-514.2.2.el7.x86_64
node-pre-gyp ERR! command "~/.nvm/versions/node/v7.3.0/bin/node" "~/production/myproject/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd ~/production/myproject/node_modules/grpc
node-pre-gyp ERR! node -v v7.3.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.31
node-pre-gyp ERR! not ok 
Failed to execute '~/.nvm/versions/node/v7.3.0/bin/node ~/.nvm/versions/node/v7.3.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=~/production/myproject/node_modules/grpc/src/node/extension_binary/grpc_node.node --module_name=grpc_node --module_path=~/production/myproject/node_modules/grpc/src/node/extension_binary' (1)
myproject@1.0.2 ~/production/myproject
└── grpc@1.0.1 

Using clang with no help as well.

Here are the compiler version I use:

ops@testing:~/$ clang -v
clang version 3.4.2 (tags/RELEASE_34/dot2-final)
Target: x86_64-redhat-linux-gnu
Thread model: posix
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.2
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.2
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.5
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5
ops@testing:~/$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/5.4.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ./configure --with-system-zlib --disable-multilib --enable-languages=c,c++
Thread model: posix
gcc version 5.4.0 (GCC) 

Why can Ubuntu 16.04 compile but not Centos 7 (with same gcc version

@tonyfahrion
Copy link

tonyfahrion commented Dec 27, 2016

@sulliwane interesting... so might be a problem with /nodejs/node/blob/master/deps/uv/include/uv.h and special ENVs (resolving in a bad pre-compiler result)...

but with a first look, the conditions within the file seem to be okay

@murgatroid99
Copy link
Member

murgatroid99 commented Jan 26, 2017

We have published grpc@1.1.0 to npm, and it includes Node 7 support.

@pcj
Copy link

pcj commented Sep 15, 2017

Any roadmap for v57 (8.x.x)?

@murgatroid99
Copy link
Member

It should already work. Are you having problems installing gRPC on Node 8?

@JimmyMow
Copy link

@pcj @murgatroid99 I am having trouble with Any roadmap for v57 / Node 8.

grpc version 1.7.3

is this not supported yet?

@murgatroid99
Copy link
Member

What specific trouble are you having? As I mentioned in my previous comment, it should work.

@nsksaisaravana
Copy link

I am also getting the same error when try to install npm install firebase.

Please check this screen shot.

image

@camicase82
Copy link

@nsksaisaravana your problem is related to a miss configuration, the error shows that you lack the python configuration, fix that by installing and configuring env vars for python make sure that you can access the python byn from the shell and try again.

In my case I was still stuck with the same download error, first the install complains about downloading the file, which I can do from browser, and then fails for "MSB8008: Specified platform toolset (v140) is not installed or invalid" and I have vs2017 along with the build tools so that was no the case.

Mi environment is:
$ npm --version
5.3.0
$ node --version
v8.9.4

and running
$ npm install grpc --save

just throwed a bunch of errors:

grpc@1.8.4 install C:\Users\User\Desktop\borrar\trotalo\appTrotalo\node_modules\grpc
node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp ERR! Tried to download(undefined): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.8.4/node-v57-win32-x64-unknown.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for grpc@1.8.4 and node@8.9.4 (node-v57 ABI, unknown) (falling back to source compile with node-gyp)
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Project file contains ToolsVersion="14.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="4.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=291333.

And actually the same error was poping again and again along different builds, and after googling for a couple hours finally found the solution, just specify the latest version to npm

$ npm install grpc@1.8.4 --save

grpc@1.8.4 install C:\Users\User\Desktop\borrar\trotalo\appTrotalo\node_modules\grpc
node-pre-gyp install --fallback-to-build --library=static_library

[grpc] Success: "C:\Users\User\Desktop\borrar\trotalo\appTrotalo\node_modules\grpc\src\node\extension_binary\node-v57-win32-x64-unknown\grpc_node.node" is installed via remote
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN ngx-carousel@1.3.5 requires a peer of @angular/core@^2.4.0 || ^4.0.0 but none was installed.
npm WARN ngx-carousel@1.3.5 requires a peer of @angular/common@^2.4.0 || ^4.0.0 but none was installed.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

@nsksaisaravana
Copy link

@camicase82 Thanks, 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.

@GeoGeo8686
Copy link

@camicase82 Yep, same here. It was my antivirus, Kasperky. I disabled it and boom.

@noor07
Copy link

noor07 commented Feb 1, 2018

Thanx thanx thanx, i disabled it and it worked...

@lluma
Copy link

lluma commented Feb 16, 2018

Same issue and disable Kasperky, then it's solved. Thx a lot!!

@navotera
Copy link

i solving this by run this command :

yarn add firebase

as alternative way installing this dependency

@mdheller
Copy link

Thanks Navotera--worked like a charm

@arifsami03
Copy link

Run "npm install grpc --save" before npm install
OR
Delete node_modules folder and package-lock.json file then start with above line will fix the issue.

@mabatak1
Copy link

mabatak1 commented Oct 3, 2018

npm install react-native firebase@4.6.2 --save

@grpc grpc locked as resolved and limited conversation to collaborators Oct 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests