question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Node gyp build fails on node v12.1.0

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:19
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
bnoordhuiscommented, May 6, 2019

Closing as it’s an issue with the module you’re trying to build, not node-gyp (i.e., wrong repo.)

1reaction
richardlaucommented, May 5, 2019

Same issue with node-sass build :

.node-gyp/12.1.0/include/node/v8.h:3002:5: note: candidate constructor not viable: no known conversion from 'v8::Local<v8::Value>' to 'const v8::String::Utf8Value' for 1st argument
    Utf8Value(const Utf8Value&) = delete;

node-sass needs to be version 4.12.0 for Node.js 12 support: https://github.com/sass/node-sass/releases/tag/v4.12.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

node-gyp build error on mac for npm install - Stack Overflow
Now I have installed and switched to Python2 and now this error is coming. I have tried almost everything but still the issue...
Read more >
Npm install command failing with message "could not find ...
When I run the npm install command, npm starts downloading the dependencies. But then, suddenly, it stops with the error:
Read more >
Pipeline break in node-gyp rebuild - Atlassian Community
we get gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit.
Read more >
Fix broken 'node-gyp' issue for Mac OS | by Fernando De Freitas
This issue is usually caused because a node-gyp config file called common.gypi is not set up for your current Mac OS version. It...
Read more >
node-sass - npm
Some users have reported issues installing on Ubuntu due to node being registered to another package. Follow the official NodeJS docs to install ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found