Npm ERR! Failed at the canvas@1.6.13 install script

> highcharts-export-server@2.0.28 preinstall /home/sachin/Desktop/Projects/api.ohphish.com/node_modules/highcharts-export-server
> node ./pre.build.js

Preinstall: no tasks to be done, skipping

> canvas@1.6.13 install /home/sachin/Desktop/Projects/api.ohphish.com/node_modules/chartjs-node/node_modules/canvas
> node-gyp rebuild

make: Entering directory '/home/sachin/Desktop/Projects/api.ohphish.com/node_modules/chartjs-node/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:
../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 [-Wdeprecated-declarations]
   42 |   Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)dest->closure->fn, 2, argv);
      |                                                                                                            ^
In file included from ../src/Canvas.h:22,
                 from ../src/Canvas.cc:7:
../../../../nan/nan.h:1026:46: note: declared here
 1026 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
      |                                              ^~~~~~~~~~~~
In file included from ../src/Canvas.cc:20:
../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 [-Wdeprecated-declarations]
   42 |   Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)dest->closure->fn, 2, argv);
      |                                                                                                            ^
In file included from ../src/Canvas.h:22,
                 from ../src/Canvas.cc:7:
../../../../nan/nan.h:1026:46: note: declared here
 1026 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
      |                                              ^~~~~~~~~~~~
In file included from ../src/Canvas.cc:20:
../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 [-Wdeprecated-declarations]
   63 |   Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)dest->closure->fn, 2, data_argv);
      |                                                                                                                 ^
In file included from ../src/Canvas.h:22,
                 from ../src/Canvas.cc:7:
../../../../nan/nan.h:1026:46: note: declared here
 1026 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
      |                                              ^~~~~~~~~~~~
In file included from ../src/Canvas.cc:20:
../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 [-Wdeprecated-declarations]
   63 |   Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)dest->closure->fn, 2, data_argv);
      |                                                                                                                 ^
In file included from ../src/Canvas.h:22,
                 from ../src/Canvas.cc:7:
../../../../nan/nan.h:1026:46: note: declared here
 1026 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
      |                                              ^~~~~~~~~~~~
In file included from ../src/Canvas.cc:20:
../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 [-Wdeprecated-declarations]
   71 |   Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)dest->closure->fn, 2, end_argv);
      |                                                                                                                ^
In file included from ../src/Canvas.h:22,
                 from ../src/Canvas.cc:7:
../../../../nan/nan.h:1026:46: note: declared here
 1026 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
      |                                              ^~~~~~~~~~~~
In file included from ../src/Canvas.cc:20:
../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 [-Wdeprecated-declarations]
   71 |   Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)dest->closure->fn, 2, end_argv);
      |                                                                                                                ^
In file included from ../src/Canvas.h:22,
                 from ../src/Canvas.cc:7:
../../../../nan/nan.h:1026:46: note: declared here
 1026 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
      |                                              ^~~~~~~~~~~~
../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()’
   60 |   Nan::Set(target, Nan::New("Canvas").ToLocalChecked(), ctor->GetFunction());
      |                                                                           ^
In file included from ../src/Canvas.h:11,
                 from ../src/Canvas.cc:7:
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:6482:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
 6482 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
      |                                              ^~~~~~~~~~~
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:6482: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()’
   74 |   if (info[0]->IsNumber()) width = info[0]->Uint32Value();
      |                                                         ^
In file included from ../src/Canvas.h:11,
                 from ../src/Canvas.cc:7:
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2866:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’
 2866 |   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
      |                                         ^~~~~~~~~~~
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2866:41: note:   candidate expects 1 argument, 0 provided
../src/Canvas.cc:75:58: error: no matching function for call to ‘v8::Value::Uint32Value()’
   75 |   if (info[1]->IsNumber()) height = info[1]->Uint32Value();
      |                                                          ^
In file included from ../src/Canvas.h:11,
                 from ../src/Canvas.cc:7:
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2866:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’
 2866 |   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
      |                                         ^~~~~~~~~~~
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2866: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>)’
   76 |   if (info[2]->IsString()) type = !strcmp("pdf", *String::Utf8Value(info[2]))
      |                                                                            ^
In file included from ../src/Canvas.h:11,
                 from ../src/Canvas.cc:7:
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:3287:5: note: candidate: ‘v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)’
 3287 |     Utf8Value(Isolate* isolate, Local<v8::Value> obj);
      |     ^~~~~~~~~
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:3287: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>)’
   78 |     : !strcmp("svg", *String::Utf8Value(info[2]))
      |                                                ^
In file included from ../src/Canvas.h:11,
                 from ../src/Canvas.cc:7:
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:3287:5: note: candidate: ‘v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)’
 3287 |     Utf8Value(Isolate* isolate, Local<v8::Value> obj);
      |     ^~~~~~~~~
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:3287: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()’
  119 |     canvas->width = value->Uint32Value();
      |                                        ^
In file included from ../src/Canvas.h:11,
                 from ../src/Canvas.cc:7:
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2866:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’
 2866 |   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
      |                                         ^~~~~~~~~~~
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2866: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()’
  140 |     canvas->height = value->Uint32Value();
      |                                         ^
In file included from ../src/Canvas.h:11,
                 from ../src/Canvas.cc:7:
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2866:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’
 2866 |   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
      |                                         ^~~~~~~~~~~
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2866: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 [-Wdeprecated-declarations]
  221 |     closure->pfn->Call(1, argv);
      |                               ^
In file included from ../src/Canvas.h:22,
                 from ../src/Canvas.cc:7:
../../../../nan/nan.h:1742:3: note: declared here
 1742 |   Call(int argc, v8::Local<v8::Value> argv[]) const {
      |   ^~~~
../src/Canvas.cc:226:31: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
  226 |     closure->pfn->Call(2, argv);
      |                               ^
In file included from ../src/Canvas.h:22,
                 from ../src/Canvas.cc:7:
../../../../nan/nan.h:1742:3: note: declared here
 1742 |   Call(int argc, v8::Local<v8::Value> argv[]) const {
      |   ^~~~
../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()’
  274 |           compression_level = info[1]->Uint32Value();
      |                                                    ^
In file included from ../src/Canvas.h:11,
                 from ../src/Canvas.cc:7:
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2866:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’
 2866 |   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
      |                                         ^~~~~~~~~~~
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2866:41: note:   candidate expects 1 argument, 0 provided
../src/Canvas.cc:279:49: error: no matching function for call to ‘v8::Value::Uint32Value()’
  279 |             uint32_t tmp = info[1]->Uint32Value();
      |                                                 ^
In file included from ../src/Canvas.h:11,
                 from ../src/Canvas.cc:7:
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2866:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’
 2866 |   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
      |                                         ^~~~~~~~~~~
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2866:41: note:   candidate expects 1 argument, 0 provided
../src/Canvas.cc:301:39: error: no matching function for call to ‘v8::Value::Uint32Value()’
  301 |         filter = info[2]->Uint32Value();
      |                                       ^
In file included from ../src/Canvas.h:11,
                 from ../src/Canvas.cc:7:
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2866:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’
 2866 |   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
      |                                         ^~~~~~~~~~~
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2866:41: note:   candidate expects 1 argument, 0 provided
../src/Canvas.cc:327:76: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
  327 |     uv_queue_work(uv_default_loop(), req, ToBufferAsync, (uv_after_work_cb)ToBufferAsyncAfter);
      |                                                                            ^~~~~~~~~~~~~~~~~~
../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 [-Wdeprecated-declarations]
  377 |   Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)closure->fn, 3, argv);
      |                                                                                                      ^
In file included from ../src/Canvas.h:22,
                 from ../src/Canvas.cc:7:
../../../../nan/nan.h:1026:46: note: declared here
 1026 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
      |                                              ^~~~~~~~~~~~
../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 [-Wdeprecated-declarations]
  377 |   Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)closure->fn, 3, argv);
      |                                                                                                      ^
In file included from ../src/Canvas.h:22,
                 from ../src/Canvas.cc:7:
../../../../nan/nan.h:1026:46: note: declared here
 1026 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
      |                                              ^~~~~~~~~~~~
../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()’
  396 |           compression_level = info[1]->Uint32Value();
      |                                                    ^
In file included from ../src/Canvas.h:11,
                 from ../src/Canvas.cc:7:
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2866:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’
 2866 |   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
      |                                         ^~~~~~~~~~~
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2866:41: note:   candidate expects 1 argument, 0 provided
../src/Canvas.cc:401:49: error: no matching function for call to ‘v8::Value::Uint32Value()’
  401 |             uint32_t tmp = info[1]->Uint32Value();
      |                                                 ^
In file included from ../src/Canvas.h:11,
                 from ../src/Canvas.cc:7:
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2866:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’
 2866 |   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
      |                                         ^~~~~~~~~~~
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2866:41: note:   candidate expects 1 argument, 0 provided
../src/Canvas.cc:423:39: error: no matching function for call to ‘v8::Value::Uint32Value()’
  423 |         filter = info[2]->Uint32Value();
      |                                       ^
In file included from ../src/Canvas.h:11,
                 from ../src/Canvas.cc:7:
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2866:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’
 2866 |   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
      |                                         ^~~~~~~~~~~
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2866: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 [-Wdeprecated-declarations]
  446 |     Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)closure.fn, 1, argv);
      |                                                                                                       ^
In file included from ../src/Canvas.h:22,
                 from ../src/Canvas.cc:7:
../../../../nan/nan.h:1026:46: note: declared here
 1026 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
      |                                              ^~~~~~~~~~~~
../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 [-Wdeprecated-declarations]
  446 |     Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)closure.fn, 1, argv);
      |                                                                                                       ^
In file included from ../src/Canvas.h:22,
                 from ../src/Canvas.cc:7:
../../../../nan/nan.h:1026:46: note: declared here
 1026 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
      |                                              ^~~~~~~~~~~~
../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 [-Wdeprecated-declarations]
  452 |     Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)closure.fn, 1, argv);
      |                                                                                                       ^
In file included from ../src/Canvas.h:22,
                 from ../src/Canvas.cc:7:
../../../../nan/nan.h:1026:46: note: declared here
 1026 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
      |                                              ^~~~~~~~~~~~
../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 [-Wdeprecated-declarations]
  452 |     Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)closure.fn, 1, argv);
      |                                                                                                       ^
In file included from ../src/Canvas.h:22,
                 from ../src/Canvas.cc:7:
../../../../nan/nan.h:1026:46: note: declared here
 1026 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
      |                                              ^~~~~~~~~~~~
../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 [-Wdeprecated-declarations]
  476 |   Nan::MakeCallback(Nan::GetCurrentContext()->Global(), closure->fn, 3, argv);
      |                                                                             ^
In file included from ../src/Canvas.h:22,
                 from ../src/Canvas.cc:7:
../../../../nan/nan.h:1026:46: note: declared here
 1026 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
      |                                              ^~~~~~~~~~~~
../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 [-Wdeprecated-declarations]
  476 |   Nan::MakeCallback(Nan::GetCurrentContext()->Global(), closure->fn, 3, argv);
      |                                                                             ^
In file included from ../src/Canvas.h:22,
                 from ../src/Canvas.cc:7:
../../../../nan/nan.h:1026:46: note: declared here
 1026 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
      |                                              ^~~~~~~~~~~~
../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()’
  557 |   write_to_jpeg_stream(canvas->surface(), info[0]->NumberValue(), info[1]->NumberValue(), info[2]->BooleanValue(), &closure);
      |                                                                ^
In file included from ../src/Canvas.h:11,
                 from ../src/Canvas.cc:7:
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2861:39: note: candidate: ‘v8::Maybe<double> v8::Value::NumberValue(v8::Local<v8::Context>) const’
 2861 |   V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
      |                                       ^~~~~~~~~~~
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2861:39: note:   candidate expects 1 argument, 0 provided
../src/Canvas.cc:557:88: error: no matching function for call to ‘v8::Value::NumberValue()’
  557 |   write_to_jpeg_stream(canvas->surface(), info[0]->NumberValue(), info[1]->NumberValue(), info[2]->BooleanValue(), &closure);
      |                                                                                        ^
In file included from ../src/Canvas.h:11,
                 from ../src/Canvas.cc:7:
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2861:39: note: candidate: ‘v8::Maybe<double> v8::Value::NumberValue(v8::Local<v8::Context>) const’
 2861 |   V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
      |                                       ^~~~~~~~~~~
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2861:39: note:   candidate expects 1 argument, 0 provided
../src/Canvas.cc:557:113: error: no matching function for call to ‘v8::Value::BooleanValue()’
  557 |   write_to_jpeg_stream(canvas->surface(), info[0]->NumberValue(), info[1]->NumberValue(), info[2]->BooleanValue(), &closure);
      |                                                                                                                 ^
In file included from ../src/Canvas.h:11,
                 from ../src/Canvas.cc:7:
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2858:8: note: candidate: ‘bool v8::Value::BooleanValue(v8::Isolate*) const’
 2858 |   bool BooleanValue(Isolate* isolate) const;
      |        ^~~~~~~~~~~~
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2858:8: note:   candidate expects 1 argument, 0 provided
../src/Canvas.cc: In member function ‘void Canvas::resurface(v8::Local<v8::Object>)’:
../src/Canvas.cc:639:73: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’
  639 |       context = canvas->Get(Nan::New<String>("context").ToLocalChecked());
      |                                                                         ^
In file included from ../src/Canvas.h:11,
                 from ../src/Canvas.cc:7:
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
 3717 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
      |                                           ^~~
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:3717:43: note:   candidate expects 2 arguments, 1 provided
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
 3720 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
      |                                           ^~~
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:3720:43: note:   candidate expects 2 arguments, 1 provided
../src/Canvas.cc:641:85: error: no matching function for call to ‘v8::Value::ToObject()’
  641 |         Context2d *context2d = Nan::ObjectWrap::Unwrap<Context2d>(context->ToObject());
      |                                                                                     ^
In file included from ../src/Canvas.h:11,
                 from ../src/Canvas.cc:7:
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
 2822 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
      |                                            ^~~~~~~~
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2822:44: note:   candidate expects 1 argument, 0 provided
../src/Canvas.cc:655:73: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’
  655 |       context = canvas->Get(Nan::New<String>("context").ToLocalChecked());
      |                                                                         ^
In file included from ../src/Canvas.h:11,
                 from ../src/Canvas.cc:7:
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
 3717 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
      |                                           ^~~
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:3717:43: note:   candidate expects 2 arguments, 1 provided
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
 3720 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
      |                                           ^~~
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:3720:43: note:   candidate expects 2 arguments, 1 provided
../src/Canvas.cc:657:85: error: no matching function for call to ‘v8::Value::ToObject()’
  657 |         Context2d *context2d = Nan::ObjectWrap::Unwrap<Context2d>(context->ToObject());
      |                                                                                     ^
In file included from ../src/Canvas.h:11,
                 from ../src/Canvas.cc:7:
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
 2822 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
      |                                            ^~~~~~~~
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:2822:44: note:   candidate expects 1 argument, 0 provided
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/sachin/.cache/node-gyp/14.15.4/include/node/node_object_wrap.h:85:78:   required from here
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:10874:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
10874 |                reinterpret_cast<Callback>(callback), type);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
../../../../nan/nan_object_wrap.h:65:61:   required from here
/home/sachin/.cache/node-gyp/14.15.4/include/node/v8.h:10874:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
make: *** [canvas.target.mk:147: Release/obj.target/canvas/src/Canvas.o] Error 1
make: Leaving directory '/home/sachin/Desktop/Projects/api.ohphish.com/node_modules/chartjs-node/node_modules/canvas/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Linux 5.4.0-42-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/sachin/Desktop/Projects/api.ohphish.com/node_modules/chartjs-node/node_modules/canvas
gyp ERR! node -v v14.15.4
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 
npm WARN chartjs-node@1.7.1 requires a peer of chart.js@<=2.7.* but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.1 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! canvas@1.6.13 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the canvas@1.6.13 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/sachin/.npm/_logs/2021-01-11T08_13_50_889Z-debug.log