profile
viewpoint

Ask questionsNode gyp build fails on node v12.1.0

Operating System Details

Distributor ID:	Ubuntu
Description:	Ubuntu 14.04.5 LTS
Release:	14.04
Codename:	trusty
Cookbooks Version
7c2c6a6 https://github.com/travis-ci/travis-cookbooks/tree/7c2c6a6

git version

git version 2.15.1

bash version

GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)

gcc version

gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ node --version
v12.1.0
$ npm --version
6.9.0
$ nvm --version
0.34.0
$ yarn --version
1.3.2
gyp info using node@12.1.0 | linux | x64
../ext/channel.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE grpc::node::Channel::GetConnectivityState(Nan::NAN_METHOD_ARGS_TYPE)’:
../ext/channel.cc:292:56: error: no matching function for call to ‘v8::Value::Equals(v8::Local<v8::Boolean>)’
   int try_to_connect = (int)info[0]->Equals(Nan::True());
                                                        ^
../ext/channel.cc:292:56: note: candidate is:
In file included from /home/travis/.node-gyp/12.1.0/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:53,
                 from ../ext/channel.cc:23:
/home/travis/.node-gyp/12.1.0/include/node/v8.h:2572:37: note: v8::Maybe<bool> v8::Value::Equals(v8::Local<v8::Context>, v8::Local<v8::Value>) const
   V8_WARN_UNUSED_RESULT Maybe<bool> Equals(Local<Context> context,
                                     ^
/home/travis/.node-gyp/12.1.0/include/node/v8.h:2572:37: note:   candidate expects 2 arguments, 1 provided
make: *** [Release/obj.target/grpc_node/ext/channel.o] Error 1

More logs: https://travis-ci.org/kaliberjs/firebase-queue/jobs/526682043

nodejs/node-gyp

Answer questions EECOLOR

@bnoordhuis Ahh, found it:-Dmodule_root_dir=/home/travis/build/kaliberjs/firebase-queue/node_modules/firebase-server/node_modules/grpc

https://github.com/grpc/grpc-node/issues/834

useful!

Related questions

Error: `gyp` failed with exit code: 1 at ChildProcess.onCpExit hot 3
gyp ERR! stack Error: `make` failed with exit code: 2 hot 2
npm install error on windows 10 hot 2
Fails on every npm install on macOS Mojave hot 2
node-gyp: EPERM: operation not permitted, read hot 2
Visual Studio finder is doing a case-sensitive path check hot 2
node-gyp rebuild failed hot 1
node-pre-gyp build fail error while installing with `npm install` or `npm install -d` hot 1
Is this an Issue with MACOS catalina? hot 1
gyp ERR! stack Error: `make` failed with exit code: 2 hot 1
Is this an Issue with MACOS catalina? hot 1
Is this an Issue with MACOS catalina? hot 1
Not able to build in osx 10.14.2 with java 10.0.1 hot 1
TypeError: '>=' not supported between instances of 'tuple' and 'str' hot 1
Breaks with VS2019 installed hot 1
Github User Rank List