We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi! I am on Centos 7. I installed all dependencies:
sudo yum install gcc-c++ cairo-devel libjpeg-turbo-devel pango-devel giflib-devel
(versions:
gcc-c++-4.8.5-36.el7_6.2.x86_64 cairo-devel-1.15.12-3.el7.x86_64 libjpeg-turbo-devel-1.2.90-6.el7.x86_64 pango-devel-1.42.4-2.el7_6.x86_64 giflib-devel-4.1.6-9.el7.x86_64
)
Node version: v12.4.0 Npm version: 6.11.2
v12.4.0
6.11.2
I can't install canvas (there are errors in the c++ compilation) and I did not find a solution.
When I try to install canvas (npm install canvas) I get the following errors:
npm install canvas
> canvas@1.6.13 install /home/mpumicity/test_kibana_vega/linked-highlighting-react-vega-redux/node_modules/vega-scenegraph/node_modules/canvas > node-gyp rebuild make: Entering directory `/home/mpumicity/test_kibana_vega/linked-highlighting-react-vega-redux/node_modules/vega-scenegraph/node_modules/canvas/build' SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node COPY Release/canvas-postbuild.node CXX(target) Release/obj.target/canvas/src/Canvas.o In file included from ../src/Canvas.cc:20:0: ../src/JPEGStream.h: In function ‘boolean empty_closure_output_buffer(j_compress_ptr)’: ../src/JPEGStream.h:42:108: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated (declared at ../../../../nan/nan.h:1024) [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)dest->closure->fn, 2, argv); ^ ../src/JPEGStream.h: In function ‘void term_closure_destination(j_compress_ptr)’: ../src/JPEGStream.h:63:113: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated (declared at ../../../../nan/nan.h:1024) [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)dest->closure->fn, 2, data_argv); ^ ../src/JPEGStream.h:71:112: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated (declared at ../../../../nan/nan.h:1024) [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)dest->closure->fn, 2, end_argv); ^ ../src/Canvas.cc: In static member function ‘static void Canvas::Initialize(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’: ../src/Canvas.cc:60:75: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ Nan::Set(target, Nan::New("Canvas").ToLocalChecked(), ctor->GetFunction()); ^ ../src/Canvas.cc:60:75: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:5947:46: note: v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>) V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:5947:46: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Canvas::New(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/Canvas.cc:74:57: error: no matching function for call to ‘v8::Value::Uint32Value()’ if (info[0]->IsNumber()) width = info[0]->Uint32Value(); ^ ../src/Canvas.cc:74:57: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc:75:58: error: no matching function for call to ‘v8::Value::Uint32Value()’ if (info[1]->IsNumber()) height = info[1]->Uint32Value(); ^ ../src/Canvas.cc:75:58: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc:76:76: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ if (info[2]->IsString()) type = !strcmp("pdf", *String::Utf8Value(info[2])) ^ ../src/Canvas.cc:76:76: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2995:5: note: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>) Utf8Value(Isolate* isolate, Local<v8::Value> obj); ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2995:5: note: candidate expects 2 arguments, 1 provided ../src/Canvas.cc:78:48: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ : !strcmp("svg", *String::Utf8Value(info[2])) ^ ../src/Canvas.cc:78:48: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2995:5: note: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>) Utf8Value(Isolate* isolate, Local<v8::Value> obj); ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2995:5: note: candidate expects 2 arguments, 1 provided ../src/Canvas.cc: In static member function ‘static Nan::NAN_SETTER_RETURN_TYPE Canvas::SetWidth(v8::Local<v8::String>, v8::Local<v8::Value>, Nan::NAN_SETTER_ARGS_TYPE)’: ../src/Canvas.cc:119:40: error: no matching function for call to ‘v8::Value::Uint32Value()’ canvas->width = value->Uint32Value(); ^ ../src/Canvas.cc:119:40: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc: In static member function ‘static Nan::NAN_SETTER_RETURN_TYPE Canvas::SetHeight(v8::Local<v8::String>, v8::Local<v8::Value>, Nan::NAN_SETTER_ARGS_TYPE)’: ../src/Canvas.cc:140:41: error: no matching function for call to ‘v8::Value::Uint32Value()’ canvas->height = value->Uint32Value(); ^ ../src/Canvas.cc:140:41: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc: In static member function ‘static void Canvas::ToBufferAsyncAfter(uv_work_t*)’: ../src/Canvas.cc:221:31: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated (declared at ../../../../nan/nan.h:1740) [-Wdeprecated-declarations] closure->pfn->Call(1, argv); ^ ../src/Canvas.cc:226:31: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated (declared at ../../../../nan/nan.h:1740) [-Wdeprecated-declarations] closure->pfn->Call(2, argv); ^ ../src/Canvas.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Canvas::ToBuffer(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/Canvas.cc:274:52: error: no matching function for call to ‘v8::Value::Uint32Value()’ compression_level = info[1]->Uint32Value(); ^ ../src/Canvas.cc:274:52: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc:279:49: error: no matching function for call to ‘v8::Value::Uint32Value()’ uint32_t tmp = info[1]->Uint32Value(); ^ ../src/Canvas.cc:279:49: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc:301:39: error: no matching function for call to ‘v8::Value::Uint32Value()’ filter = info[2]->Uint32Value(); ^ ../src/Canvas.cc:301:39: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc: In function ‘cairo_status_t streamPNG(void*, const uint8_t*, unsigned int)’: ../src/Canvas.cc:377:102: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated (declared at ../../../../nan/nan.h:1024) [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)closure->fn, 3, argv); ^ ../src/Canvas.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Canvas::StreamPNGSync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/Canvas.cc:396:52: error: no matching function for call to ‘v8::Value::Uint32Value()’ compression_level = info[1]->Uint32Value(); ^ ../src/Canvas.cc:396:52: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc:401:49: error: no matching function for call to ‘v8::Value::Uint32Value()’ uint32_t tmp = info[1]->Uint32Value(); ^ ../src/Canvas.cc:401:49: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc:423:39: error: no matching function for call to ‘v8::Value::Uint32Value()’ filter = info[2]->Uint32Value(); ^ ../src/Canvas.cc:423:39: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc:446:103: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated (declared at ../../../../nan/nan.h:1024) [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)closure.fn, 1, argv); ^ ../src/Canvas.cc:452:103: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated (declared at ../../../../nan/nan.h:1024) [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)closure.fn, 1, argv); ^ ../src/Canvas.cc: In function ‘cairo_status_t streamPDF(void*, const uint8_t*, unsigned int)’: ../src/Canvas.cc:476:77: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated (declared at ../../../../nan/nan.h:1024) [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), closure->fn, 3, argv); ^ ../src/Canvas.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Canvas::StreamJPEGSync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/Canvas.cc:557:64: error: no matching function for call to ‘v8::Value::NumberValue()’ write_to_jpeg_stream(canvas->surface(), info[0]->NumberValue(), info[1]->NumberValue(), info[2]->BooleanValue(), &closure); ^ ../src/Canvas.cc:557:64: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2564:39: note: v8::Maybe<double> v8::Value::NumberValue(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const; ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2564:39: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc:557:88: error: no matching function for call to ‘v8::Value::NumberValue()’ write_to_jpeg_stream(canvas->surface(), info[0]->NumberValue(), info[1]->NumberValue(), info[2]->BooleanValue(), &closure); ^ ../src/Canvas.cc:557:88: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2564:39: note: v8::Maybe<double> v8::Value::NumberValue(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const; ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2564:39: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc:557:113: error: no matching function for call to ‘v8::Value::BooleanValue()’ write_to_jpeg_stream(canvas->surface(), info[0]->NumberValue(), info[1]->NumberValue(), info[2]->BooleanValue(), &closure); ^ ../src/Canvas.cc:557:113: note: candidates are: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2559:8: note: bool v8::Value::BooleanValue(v8::Isolate*) const bool BooleanValue(Isolate* isolate) const; ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2559:8: note: candidate expects 1 argument, 0 provided In file included from /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8-internal.h:14:0, from /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:25, from ../src/Canvas.h:11, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2562:51: note: v8::Maybe<bool> v8::Value::BooleanValue(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8config.h:307:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2562:51: note: candidate expects 1 argument, 0 provided V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8config.h:307:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^ ../src/Canvas.cc: In member function ‘void Canvas::resurface(v8::Local<v8::Object>)’: ../src/Canvas.cc:639:73: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated (declared at /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:3412): Use maybe version [-Wdeprecated-declarations] context = canvas->Get(Nan::New<String>("context").ToLocalChecked()); ^ ../src/Canvas.cc:641:85: error: no matching function for call to ‘v8::Value::ToObject()’ Context2d *context2d = Nan::ObjectWrap::Unwrap<Context2d>(context->ToObject()); ^ ../src/Canvas.cc:641:85: note: candidates are: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2532:44: note: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2532:44: note: candidate expects 1 argument, 0 provided In file included from /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8-internal.h:14:0, from /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:25, from ../src/Canvas.h:11, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2546:35: note: v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const Local<Object> ToObject(Isolate* isolate) const); ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ declarator __attribute__((deprecated(message))) ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2546:35: note: candidate expects 1 argument, 0 provided Local<Object> ToObject(Isolate* isolate) const); ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ declarator __attribute__((deprecated(message))) ^ ../src/Canvas.cc:655:73: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated (declared at /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:3412): Use maybe version [-Wdeprecated-declarations] context = canvas->Get(Nan::New<String>("context").ToLocalChecked()); ^ ../src/Canvas.cc:657:85: error: no matching function for call to ‘v8::Value::ToObject()’ Context2d *context2d = Nan::ObjectWrap::Unwrap<Context2d>(context->ToObject()); ^ ../src/Canvas.cc:657:85: note: candidates are: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2532:44: note: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2532:44: note: candidate expects 1 argument, 0 provided In file included from /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8-internal.h:14:0, from /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:25, from ../src/Canvas.h:11, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2546:35: note: v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const Local<Object> ToObject(Isolate* isolate) const); ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ declarator __attribute__((deprecated(message))) ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2546:35: note: candidate expects 1 argument, 0 provided Local<Object> ToObject(Isolate* isolate) const); ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ declarator __attribute__((deprecated(message))) ^ make: *** [Release/obj.target/canvas/src/Canvas.o] Error 1 make: Leaving directory `/home/mpumicity/test_kibana_vega/linked-highlighting-react-vega-redux/node_modules/vega-scenegraph/node_modules/canvas/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/mpumicity/.nvm/versions/node/v12.4.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:196:23) gyp ERR! stack at ChildProcess.emit (events.js:200:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12) gyp ERR! System Linux 3.10.0-957.21.3.el7.x86_64 gyp ERR! command "/home/mpumicity/.nvm/versions/node/v12.4.0/bin/node" "/home/mpumicity/.nvm/versions/node/v12.4.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/mpumicity/test_kibana_vega/linked-highlighting-react-vega-redux/node_modules/vega-scenegraph/node_modules/canvas gyp ERR! node -v v12.4.0 gyp ERR! node-gyp -v v5.0.3 gyp ERR! not ok > canvas@1.6.13 install /home/mpumicity/test_kibana_vega/linked-highlighting-react-vega-redux/node_modules/vega/node_modules/canvas > node-gyp rebuild make: Entering directory `/home/mpumicity/test_kibana_vega/linked-highlighting-react-vega-redux/node_modules/vega/node_modules/canvas/build' SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node COPY Release/canvas-postbuild.node CXX(target) Release/obj.target/canvas/src/Canvas.o In file included from ../src/Canvas.cc:20:0: ../src/JPEGStream.h: In function ‘boolean empty_closure_output_buffer(j_compress_ptr)’: ../src/JPEGStream.h:42:108: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated (declared at ../../../../nan/nan.h:1024) [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)dest->closure->fn, 2, argv); ^ ../src/JPEGStream.h: In function ‘void term_closure_destination(j_compress_ptr)’: ../src/JPEGStream.h:63:113: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated (declared at ../../../../nan/nan.h:1024) [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)dest->closure->fn, 2, data_argv); ^ ../src/JPEGStream.h:71:112: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated (declared at ../../../../nan/nan.h:1024) [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)dest->closure->fn, 2, end_argv); ^ ../src/Canvas.cc: In static member function ‘static void Canvas::Initialize(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’: ../src/Canvas.cc:60:75: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ Nan::Set(target, Nan::New("Canvas").ToLocalChecked(), ctor->GetFunction()); ^ ../src/Canvas.cc:60:75: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:5947:46: note: v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>) V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:5947:46: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Canvas::New(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/Canvas.cc:74:57: error: no matching function for call to ‘v8::Value::Uint32Value()’ if (info[0]->IsNumber()) width = info[0]->Uint32Value(); ^ ../src/Canvas.cc:74:57: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc:75:58: error: no matching function for call to ‘v8::Value::Uint32Value()’ if (info[1]->IsNumber()) height = info[1]->Uint32Value(); ^ ../src/Canvas.cc:75:58: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc:76:76: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ if (info[2]->IsString()) type = !strcmp("pdf", *String::Utf8Value(info[2])) ^ ../src/Canvas.cc:76:76: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2995:5: note: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>) Utf8Value(Isolate* isolate, Local<v8::Value> obj); ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2995:5: note: candidate expects 2 arguments, 1 provided ../src/Canvas.cc:78:48: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ : !strcmp("svg", *String::Utf8Value(info[2])) ^ ../src/Canvas.cc:78:48: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2995:5: note: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>) Utf8Value(Isolate* isolate, Local<v8::Value> obj); ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2995:5: note: candidate expects 2 arguments, 1 provided ../src/Canvas.cc: In static member function ‘static Nan::NAN_SETTER_RETURN_TYPE Canvas::SetWidth(v8::Local<v8::String>, v8::Local<v8::Value>, Nan::NAN_SETTER_ARGS_TYPE)’: ../src/Canvas.cc:119:40: error: no matching function for call to ‘v8::Value::Uint32Value()’ canvas->width = value->Uint32Value(); ^ ../src/Canvas.cc:119:40: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc: In static member function ‘static Nan::NAN_SETTER_RETURN_TYPE Canvas::SetHeight(v8::Local<v8::String>, v8::Local<v8::Value>, Nan::NAN_SETTER_ARGS_TYPE)’: ../src/Canvas.cc:140:41: error: no matching function for call to ‘v8::Value::Uint32Value()’ canvas->height = value->Uint32Value(); ^ ../src/Canvas.cc:140:41: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc: In static member function ‘static void Canvas::ToBufferAsyncAfter(uv_work_t*)’: ../src/Canvas.cc:221:31: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated (declared at ../../../../nan/nan.h:1740) [-Wdeprecated-declarations] closure->pfn->Call(1, argv); ^ ../src/Canvas.cc:226:31: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated (declared at ../../../../nan/nan.h:1740) [-Wdeprecated-declarations] closure->pfn->Call(2, argv); ^ ../src/Canvas.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Canvas::ToBuffer(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/Canvas.cc:274:52: error: no matching function for call to ‘v8::Value::Uint32Value()’ compression_level = info[1]->Uint32Value(); ^ ../src/Canvas.cc:274:52: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc:279:49: error: no matching function for call to ‘v8::Value::Uint32Value()’ uint32_t tmp = info[1]->Uint32Value(); ^ ../src/Canvas.cc:279:49: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc:301:39: error: no matching function for call to ‘v8::Value::Uint32Value()’ filter = info[2]->Uint32Value(); ^ ../src/Canvas.cc:301:39: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc: In function ‘cairo_status_t streamPNG(void*, const uint8_t*, unsigned int)’: ../src/Canvas.cc:377:102: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated (declared at ../../../../nan/nan.h:1024) [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)closure->fn, 3, argv); ^ ../src/Canvas.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Canvas::StreamPNGSync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/Canvas.cc:396:52: error: no matching function for call to ‘v8::Value::Uint32Value()’ compression_level = info[1]->Uint32Value(); ^ ../src/Canvas.cc:396:52: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc:401:49: error: no matching function for call to ‘v8::Value::Uint32Value()’ uint32_t tmp = info[1]->Uint32Value(); ^ ../src/Canvas.cc:401:49: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc:423:39: error: no matching function for call to ‘v8::Value::Uint32Value()’ filter = info[2]->Uint32Value(); ^ ../src/Canvas.cc:423:39: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2567:41: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc:446:103: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated (declared at ../../../../nan/nan.h:1024) [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)closure.fn, 1, argv); ^ ../src/Canvas.cc:452:103: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated (declared at ../../../../nan/nan.h:1024) [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)closure.fn, 1, argv); ^ ../src/Canvas.cc: In function ‘cairo_status_t streamPDF(void*, const uint8_t*, unsigned int)’: ../src/Canvas.cc:476:77: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated (declared at ../../../../nan/nan.h:1024) [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), closure->fn, 3, argv); ^ ../src/Canvas.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Canvas::StreamJPEGSync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/Canvas.cc:557:64: error: no matching function for call to ‘v8::Value::NumberValue()’ write_to_jpeg_stream(canvas->surface(), info[0]->NumberValue(), info[1]->NumberValue(), info[2]->BooleanValue(), &closure); ^ ../src/Canvas.cc:557:64: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2564:39: note: v8::Maybe<double> v8::Value::NumberValue(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const; ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2564:39: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc:557:88: error: no matching function for call to ‘v8::Value::NumberValue()’ write_to_jpeg_stream(canvas->surface(), info[0]->NumberValue(), info[1]->NumberValue(), info[2]->BooleanValue(), &closure); ^ ../src/Canvas.cc:557:88: note: candidate is: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2564:39: note: v8::Maybe<double> v8::Value::NumberValue(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const; ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2564:39: note: candidate expects 1 argument, 0 provided ../src/Canvas.cc:557:113: error: no matching function for call to ‘v8::Value::BooleanValue()’ write_to_jpeg_stream(canvas->surface(), info[0]->NumberValue(), info[1]->NumberValue(), info[2]->BooleanValue(), &closure); ^ ../src/Canvas.cc:557:113: note: candidates are: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2559:8: note: bool v8::Value::BooleanValue(v8::Isolate*) const bool BooleanValue(Isolate* isolate) const; ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2559:8: note: candidate expects 1 argument, 0 provided In file included from /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8-internal.h:14:0, from /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:25, from ../src/Canvas.h:11, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2562:51: note: v8::Maybe<bool> v8::Value::BooleanValue(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8config.h:307:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2562:51: note: candidate expects 1 argument, 0 provided V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8config.h:307:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^ ../src/Canvas.cc: In member function ‘void Canvas::resurface(v8::Local<v8::Object>)’: ../src/Canvas.cc:639:73: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated (declared at /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:3412): Use maybe version [-Wdeprecated-declarations] context = canvas->Get(Nan::New<String>("context").ToLocalChecked()); ^ ../src/Canvas.cc:641:85: error: no matching function for call to ‘v8::Value::ToObject()’ Context2d *context2d = Nan::ObjectWrap::Unwrap<Context2d>(context->ToObject()); ^ ../src/Canvas.cc:641:85: note: candidates are: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2532:44: note: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2532:44: note: candidate expects 1 argument, 0 provided In file included from /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8-internal.h:14:0, from /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:25, from ../src/Canvas.h:11, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2546:35: note: v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const Local<Object> ToObject(Isolate* isolate) const); ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ declarator __attribute__((deprecated(message))) ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2546:35: note: candidate expects 1 argument, 0 provided Local<Object> ToObject(Isolate* isolate) const); ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ declarator __attribute__((deprecated(message))) ^ ../src/Canvas.cc:655:73: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated (declared at /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:3412): Use maybe version [-Wdeprecated-declarations] context = canvas->Get(Nan::New<String>("context").ToLocalChecked()); ^ ../src/Canvas.cc:657:85: error: no matching function for call to ‘v8::Value::ToObject()’ Context2d *context2d = Nan::ObjectWrap::Unwrap<Context2d>(context->ToObject()); ^ ../src/Canvas.cc:657:85: note: candidates are: In file included from ../src/Canvas.h:11:0, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2532:44: note: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2532:44: note: candidate expects 1 argument, 0 provided In file included from /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8-internal.h:14:0, from /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:25, from ../src/Canvas.h:11, from ../src/Canvas.cc:7: /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2546:35: note: v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const Local<Object> ToObject(Isolate* isolate) const); ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ declarator __attribute__((deprecated(message))) ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8.h:2546:35: note: candidate expects 1 argument, 0 provided Local<Object> ToObject(Isolate* isolate) const); ^ /home/mpumicity/.cache/node-gyp/12.4.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ declarator __attribute__((deprecated(message))) ^ make: *** [Release/obj.target/canvas/src/Canvas.o] Error 1 make: Leaving directory `/home/mpumicity/test_kibana_vega/linked-highlighting-react-vega-redux/node_modules/vega/node_modules/canvas/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/mpumicity/.nvm/versions/node/v12.4.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:196:23) gyp ERR! stack at ChildProcess.emit (events.js:200:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12) gyp ERR! System Linux 3.10.0-957.21.3.el7.x86_64 gyp ERR! command "/home/mpumicity/.nvm/versions/node/v12.4.0/bin/node" "/home/mpumicity/.nvm/versions/node/v12.4.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/mpumicity/test_kibana_vega/linked-highlighting-react-vega-redux/node_modules/vega/node_modules/canvas gyp ERR! node -v v12.4.0 gyp ERR! node-gyp -v v5.0.3 gyp ERR! not ok > canvas@2.6.0 install /home/mpumicity/test_kibana_vega/linked-highlighting-react-vega-redux/node_modules/canvas > node-pre-gyp install --fallback-to-build node-pre-gyp WARN Using request for node-pre-gyp https download [canvas] Success: "/home/mpumicity/test_kibana_vega/linked-highlighting-react-vega-redux/node_modules/canvas/build/Release/canvas.node" is installed via remote npm WARN linked-highlighting-react-vega-redux@0.0.1 No repository field. npm WARN linked-highlighting-react-vega-redux@0.0.1 No license field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: canvas@1.6.13 (node_modules/vega-scenegraph/node_modules/canvas): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: canvas@1.6.13 install: `node-gyp rebuild` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: canvas@1.6.13 (node_modules/vega/node_modules/canvas): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: canvas@1.6.13 install: `node-gyp rebuild` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
The text was updated successfully, but these errors were encountered:
It looks like you've trying to install canvas@1.6.13, which doesn't work with Node.js 12. Can you install canvas 2.x?
Sorry, something went wrong.
I'm having the same issue, how can I install canvas 2.x on Ubuntu 18.04?
No branches or pull requests
Environment
Hi! I am on Centos 7. I installed all dependencies:
(versions:
)
Node version:
v12.4.0
Npm version:
6.11.2
Issue
I can't install canvas (there are errors in the c++ compilation) and I did not find a solution.
When I try to install canvas (
npm install canvas
) I get the following errors:The text was updated successfully, but these errors were encountered: