title: Npm install falied
body: <p>I'm trying to perform JP Morgan(Virtual Internship) Task 3. According to instructions I have done the setup.</p>
  <p>But while running the script <code>npm install</code> on kali linux, I get this error.
  I'm using the latest linux and npm version. Is my current version of npm conflicting with the preferred version of npm?
  My npm version is 8.3.0 &amp; node version is 12.22.7</p>
  <pre><code>`npm ERR! code 1
  npm ERR! path /home/kali/JPMC-tech-task-3-PY3/node_modules/bufferutil
  
  npm ERR! command failed
  npm ERR! command sh -c prebuild-install || node-gyp rebuild
  npm ERR! make: Entering directory '/home/kali/JPMC-tech-task-3-PY3/node_modules/bufferutil/build'
  npm ERR!   CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  npm ERR! make: Leaving directory '/home/kali/JPMC-tech-task-3-PY3/node_modules/bufferutil/build'
  npm ERR! gyp info it worked if it ends with ok
  npm ERR! gyp info using node-gyp@8.4.1
  npm ERR! gyp info using node@12.22.7 | linux | x64
  npm ERR! gyp info find Python using Python version 3.9.9 found at &quot;/usr/bin/python3&quot;
  npm ERR! gyp info spawn /usr/bin/python3
  npm ERR! gyp info spawn args [
  npm ERR! gyp info spawn args   '/usr/share/nodejs/node-gyp/gyp/gyp_main.py',
  npm ERR! gyp info spawn args   'binding.gyp',
  npm ERR! gyp info spawn args   '-f',
  npm ERR! gyp info spawn args   'make',
  npm ERR! gyp info spawn args   '-I',
  npm ERR! gyp info spawn args   '/home/kali/JPMC-tech-task-3-PY3/node_modules/bufferutil/build/config.gypi',
  npm ERR! gyp info spawn args   '-I',
  npm ERR! gyp info spawn args   '/usr/share/nodejs/node-gyp/addon.gypi',
  npm ERR! gyp info spawn args   '-I',
  npm ERR! gyp info spawn args   '/usr/include/nodejs/common.gypi',
  npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
  npm ERR! gyp info spawn args   '-Dvisibility=default',
  npm ERR! gyp info spawn args   '-Dnode_root_dir=/usr/include/nodejs',
  npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/share/nodejs/node-gyp',
  npm ERR! gyp info spawn args   '-Dnode_lib_file=/usr/include/nodejs/&lt;(target_arch)/node.lib',
  npm ERR! gyp info spawn args   '-Dmodule_root_dir=/home/kali/JPMC-tech-task-3-PY3/node_modules/bufferutil',
  npm ERR! gyp info spawn args   '-Dnode_engine=v8',
  npm ERR! gyp info spawn args   '--depth=.',
  npm ERR! gyp info spawn args   '--no-parallel',
  npm ERR! gyp info spawn args   '--generator-output',
  npm ERR! gyp info spawn args   'build',
  npm ERR! gyp info spawn args   '-Goutput_dir=.'
  npm ERR! gyp info spawn args ]
  npm ERR! gyp info spawn make
  npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  npm ERR! In file included from ../node_modules/nan/nan_converters.h:67,
  npm ERR!                  from ../node_modules/nan/nan.h:202,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! ../node_modules/nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase&lt;v8::Boolean&gt;::return_t Nan::imp::ToFactory&lt;v8::Boolean&gt;::convert(v8::Local&lt;v8::Value&gt;)’:
  npm ERR! ../node_modules/nan/nan_converters_43_inl.h:18:22: warning: ‘v8::MaybeLocal&lt;v8::Boolean&gt; v8::Value::ToBoolean(v8::Local&lt;v8::Context&gt;) const’ is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]
  npm ERR!    18 |       val-&gt;To ## TYPE(isolate-&gt;GetCurrentContext())                            \
  npm ERR!       |       ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  npm ERR! ../node_modules/nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
  npm ERR!    22 | X(Boolean)
  npm ERR!       | ^
  npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
  npm ERR!                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
  npm ERR!                  from /usr/include/nodejs/src/node.h:67,
  npm ERR!                  from ../node_modules/nan/nan.h:51,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2664:59: note: declared here
  npm ERR!  2664 |                 V8_WARN_UNUSED_RESULT MaybeLocal&lt;Boolean&gt; ToBoolean(
  npm ERR!       |                                                           ^~~~~~~~~
  npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
  npm ERR!   328 |   declarator __attribute__((deprecated(message)))
  npm ERR!       |   ^~~~~~~~~~
  npm ERR! In file included from ../node_modules/nan/nan_converters.h:67,
  npm ERR!                  from ../node_modules/nan/nan.h:202,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! ../node_modules/nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase&lt;bool&gt;::return_t Nan::imp::ToFactory&lt;bool&gt;::convert(v8::Local&lt;v8::Value&gt;)’:
  npm ERR! ../node_modules/nan/nan_converters_43_inl.h:37:28: warning: ‘v8::Maybe&lt;bool&gt; v8::Value::BooleanValue(v8::Local&lt;v8::Context&gt;) const’ is deprecated: BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declarations]
  npm ERR!    37 |   return val-&gt;NAME ## Value(isolate-&gt;GetCurrentContext());                     \
  npm ERR!       |          ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  npm ERR! ../node_modules/nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
  npm ERR!    40 | X(bool, Boolean)
  npm ERR!       | ^
  npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
  npm ERR!                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
  npm ERR!                  from /usr/include/nodejs/src/node.h:67,
  npm ERR!                  from ../node_modules/nan/nan.h:51,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2702:51: note: declared here
  npm ERR!  2702 |                 V8_WARN_UNUSED_RESULT Maybe&lt;bool&gt; BooleanValue(
  npm ERR!       |                                                   ^~~~~~~~~~~~
  npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
  npm ERR!   328 |   declarator __attribute__((deprecated(message)))
  npm ERR!       |   ^~~~~~~~~~
  npm ERR! In file included from ../node_modules/nan/nan_new.h:189,
  npm ERR!                  from ../node_modules/nan/nan.h:203,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase&lt;v8::Function&gt;::return_t Nan::imp::Factory&lt;v8::Function&gt;::New(Nan::FunctionCallback, v8::Local&lt;v8::Value&gt;)’:
  npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:103:42: error: cannot convert ‘v8::Isolate*’ to ‘v8::Local&lt;v8::Context&gt;’
  npm ERR!   103 |   return scope.Escape(v8::Function::New( isolate
  npm ERR!       |                                          ^~~~~~~
  npm ERR!       |                                          |
  npm ERR!       |                                          v8::Isolate*
  npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
  npm ERR!                  from ../node_modules/nan/nan.h:51,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:4276:22: note:   initializing argument 1 of ‘static v8::MaybeLocal&lt;v8::Function&gt; v8::Function::New(v8::Local&lt;v8::Context&gt;, v8::FunctionCallback, v8::Local&lt;v8::Value&gt;, int, v8::ConstructorBehavior, v8::SideEffectType)’
  npm ERR!  4276 |       Local&lt;Context&gt; context, FunctionCallback callback,
  npm ERR!       |       ~~~~~~~~~~~~~~~^~~~~~~
  npm ERR! In file included from ../node_modules/nan/nan_new.h:189,
  npm ERR!                  from ../node_modules/nan/nan.h:203,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase&lt;v8::StringObject&gt;::return_t Nan::imp::Factory&lt;v8::StringObject&gt;::New(v8::Local&lt;v8::String&gt;)’:
  npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:337:31: error: no matching function for call to ‘v8::StringObject::New(v8::Local&lt;v8::String&gt;&amp;)’
  npm ERR!   337 |   return v8::StringObject::New(value).As&lt;v8::StringObject&gt;();
  npm ERR!       |          ~~~~~~~~~~~~~~~~~~~~~^~~~~~~
  npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
  npm ERR!                  from ../node_modules/nan/nan.h:51,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:5531:23: note: candidate: ‘static v8::Local&lt;v8::Value&gt; v8::StringObject::New(v8::Isolate*, v8::Local&lt;v8::String&gt;)’
  npm ERR!  5531 |   static Local&lt;Value&gt; New(Isolate* isolate, Local&lt;String&gt; value);
  npm ERR!       |                       ^~~
  npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:5531:23: note:   candidate expects 2 arguments, 1 provided
  npm ERR! In file included from ../node_modules/nan/nan_new.h:189,
  npm ERR!                  from ../node_modules/nan/nan.h:203,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:337:58: error: expected primary-expression before ‘&gt;’ token
  npm ERR!   337 |   return v8::StringObject::New(value).As&lt;v8::StringObject&gt;();
  npm ERR!       |                                                          ^
  npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:337:60: error: expected primary-expression before ‘)’ token
  npm ERR!   337 |   return v8::StringObject::New(value).As&lt;v8::StringObject&gt;();
  npm ERR!       |                                                            ^
  npm ERR! In file included from ../src/bufferutil.cc:7:
  npm ERR! ../node_modules/nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local&lt;v8::Value&gt;)’:
  npm ERR! ../node_modules/nan/nan.h:1034:52: error: no matching function for call to ‘v8::Value::ToString()’
  npm ERR!  1034 |       v8::Local&lt;v8::String&gt; string = from-&gt;ToString();
  npm ERR!       |                                      ~~~~~~~~~~~~~~^~
  npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
  npm ERR!                  from ../node_modules/nan/nan.h:51,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2668:44: note: candidate: ‘v8::MaybeLocal&lt;v8::String&gt; v8::Value::ToString(v8::Local&lt;v8::Context&gt;) const’
  npm ERR!  2668 |   V8_WARN_UNUSED_RESULT MaybeLocal&lt;String&gt; ToString(
  npm ERR!       |                                            ^~~~~~~~
  npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2668:44: note:   candidate expects 1 argument, 0 provided
  npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
  npm ERR!                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
  npm ERR!                  from /usr/include/nodejs/src/node.h:67,
  npm ERR!                  from ../node_modules/nan/nan.h:51,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2684:31: note: candidate: ‘v8::Local&lt;v8::String&gt; v8::Value::ToString(v8::Isolate*) const’
  npm ERR!  2684 |                 Local&lt;String&gt; ToString(Isolate* isolate) const);
  npm ERR!       |                               ^~~~~~~~
  npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
  npm ERR!   328 |   declarator __attribute__((deprecated(message)))
  npm ERR!       |   ^~~~~~~~~~
  npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2684:31: note:   candidate expects 1 argument, 0 provided
  npm ERR!  2684 |                 Local&lt;String&gt; ToString(Isolate* isolate) const);
  npm ERR!       |                               ^~~~~~~~
  npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
  npm ERR!   328 |   declarator __attribute__((deprecated(message)))
  npm ERR!       |   ^~~~~~~~~~
  npm ERR! In file included from ../src/bufferutil.cc:7:
  npm ERR! ../node_modules/nan/nan.h:1044:37: error: cannot convert ‘char*’ to ‘v8::Isolate*’
  npm ERR!  1044 |         length_ = string-&gt;WriteUtf8(str_, static_cast&lt;int&gt;(len), 0, flags);
  npm ERR!       |                                     ^~~~
  npm ERR!       |                                     |
  npm ERR!       |                                     char*
  npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
  npm ERR!                  from ../node_modules/nan/nan.h:51,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2878:26: note:   initializing argument 1 of ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’
  npm ERR!  2878 |   int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
  npm ERR!       |                 ~~~~~~~~~^~~~~~~
  npm ERR! In file included from ../src/bufferutil.cc:7:
  npm ERR! ../node_modules/nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local&lt;v8::Value&gt;&amp;)’:
  npm ERR! ../node_modules/nan/nan.h:1818:31: warning: ‘bool v8::Object::Set(v8::Local&lt;v8::Value&gt;, v8::Local&lt;v8::Value&gt;)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  npm ERR!  1818 |     New(persistentHandle)-&gt;Set(New(key).ToLocalChecked(), value);
  npm ERR!       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
  npm ERR!                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
  npm ERR!                  from /usr/include/nodejs/src/node.h:67,
  npm ERR!                  from ../node_modules/nan/nan.h:51,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:3499:22: note: declared here
  npm ERR!  3499 |                 bool Set(Local&lt;Value&gt; key, Local&lt;Value&gt; value));
  npm ERR!       |                      ^~~
  npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
  npm ERR!   328 |   declarator __attribute__((deprecated(message)))
  npm ERR!       |   ^~~~~~~~~~
  npm ERR! In file included from ../src/bufferutil.cc:7:
  npm ERR! ../node_modules/nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local&lt;v8::String&gt;&amp;, const v8::Local&lt;v8::Value&gt;&amp;)’:
  npm ERR! ../node_modules/nan/nan.h:1824:31: warning: ‘bool v8::Object::Set(v8::Local&lt;v8::Value&gt;, v8::Local&lt;v8::Value&gt;)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  npm ERR!  1824 |     New(persistentHandle)-&gt;Set(key, value);
  npm ERR!       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
  npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
  npm ERR!                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
  npm ERR!                  from /usr/include/nodejs/src/node.h:67,
  npm ERR!                  from ../node_modules/nan/nan.h:51,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:3499:22: note: declared here
  npm ERR!  3499 |                 bool Set(Local&lt;Value&gt; key, Local&lt;Value&gt; value));
  npm ERR!       |                      ^~~
  npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
  npm ERR!   328 |   declarator __attribute__((deprecated(message)))
  npm ERR!       |   ^~~~~~~~~~
  npm ERR! In file included from ../src/bufferutil.cc:7:
  npm ERR! ../node_modules/nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local&lt;v8::Value&gt;&amp;)’:
  npm ERR! ../node_modules/nan/nan.h:1830:31: warning: ‘bool v8::Object::Set(uint32_t, v8::Local&lt;v8::Value&gt;)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  npm ERR!  1830 |     New(persistentHandle)-&gt;Set(index, value);
  npm ERR!       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
  npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
  npm ERR!                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
  npm ERR!                  from /usr/include/nodejs/src/node.h:67,
  npm ERR!                  from ../node_modules/nan/nan.h:51,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:3508:22: note: declared here
  npm ERR!  3508 |                 bool Set(uint32_t index, Local&lt;Value&gt; value));
  npm ERR!       |                      ^~~
  npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
  npm ERR!   328 |   declarator __attribute__((deprecated(message)))
  npm ERR!       |   ^~~~~~~~~~
  npm ERR! In file included from ../src/bufferutil.cc:7:
  npm ERR! ../node_modules/nan/nan.h: In member function ‘v8::Local&lt;v8::Value&gt; Nan::AsyncWorker::GetFromPersistent(const char*) const’:
  npm ERR! ../node_modules/nan/nan.h:1836:35: warning: ‘v8::Local&lt;v8::Value&gt; v8::Object::Get(v8::Local&lt;v8::Value&gt;)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  npm ERR!  1836 |         New(persistentHandle)-&gt;Get(New(key).ToLocalChecked()));
  npm ERR!       |         ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
  npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
  npm ERR!                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
  npm ERR!                  from /usr/include/nodejs/src/node.h:67,
  npm ERR!                  from ../node_modules/nan/nan.h:51,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:3553:51: note: declared here
  npm ERR!  3553 |   V8_DEPRECATED(&quot;Use maybe version&quot;, Local&lt;Value&gt; Get(Local&lt;Value&gt; key));
  npm ERR!       |                                                   ^~~
  npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
  npm ERR!   328 |   declarator __attribute__((deprecated(message)))
  npm ERR!       |   ^~~~~~~~~~
  npm ERR! In file included from ../src/bufferutil.cc:7:
  npm ERR! ../node_modules/nan/nan.h: In member function ‘v8::Local&lt;v8::Value&gt; Nan::AsyncWorker::GetFromPersistent(const v8::Local&lt;v8::String&gt;&amp;) const’:
  npm ERR! ../node_modules/nan/nan.h:1842:51: warning: ‘v8::Local&lt;v8::Value&gt; v8::Object::Get(v8::Local&lt;v8::Value&gt;)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  npm ERR!  1842 |     return scope.Escape(New(persistentHandle)-&gt;Get(key));
  npm ERR!       |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
  npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
  npm ERR!                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
  npm ERR!                  from /usr/include/nodejs/src/node.h:67,
  npm ERR!                  from ../node_modules/nan/nan.h:51,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:3553:51: note: declared here
  npm ERR!  3553 |   V8_DEPRECATED(&quot;Use maybe version&quot;, Local&lt;Value&gt; Get(Local&lt;Value&gt; key));
  npm ERR!       |                                                   ^~~
  npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
  npm ERR!   328 |   declarator __attribute__((deprecated(message)))
  npm ERR!       |   ^~~~~~~~~~
  npm ERR! In file included from ../src/bufferutil.cc:7:
  npm ERR! ../node_modules/nan/nan.h: In member function ‘v8::Local&lt;v8::Value&gt; Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
  npm ERR! ../node_modules/nan/nan.h:1847:51: warning: ‘v8::Local&lt;v8::Value&gt; v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  npm ERR!  1847 |     return scope.Escape(New(persistentHandle)-&gt;Get(index));
  npm ERR!       |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
  npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
  npm ERR!                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
  npm ERR!                  from /usr/include/nodejs/src/node.h:67,
  npm ERR!                  from ../node_modules/nan/nan.h:51,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:3557:51: note: declared here
  npm ERR!  3557 |   V8_DEPRECATED(&quot;Use maybe version&quot;, Local&lt;Value&gt; Get(uint32_t index));
  npm ERR!       |                                                   ^~~
  npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
  npm ERR!   328 |   declarator __attribute__((deprecated(message)))
  npm ERR!       |   ^~~~~~~~~~
  npm ERR! In file included from ../src/bufferutil.cc:7:
  npm ERR! ../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
  npm ERR! ../node_modules/nan/nan.h:2167:7: 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]
  npm ERR!  2167 |     , reinterpret_cast&lt;uv_after_work_cb&gt;(AsyncExecuteComplete)
  npm ERR!       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  npm ERR! In file included from /usr/include/c++/11/cassert:44,
  npm ERR!                  from /usr/include/nodejs/src/node_object_wrap.h:26,
  npm ERR!                  from ../node_modules/nan/nan.h:53,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! ../node_modules/nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
  npm ERR! ../node_modules/nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent&lt;v8::Object&gt;’ has no member named ‘IsNearDeath’
  npm ERR!    24 |     assert(persistent().IsNearDeath());
  npm ERR!       |                         ^~~~~~~~~~~
  npm ERR! In file included from ../node_modules/nan/nan.h:2657,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! ../node_modules/nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
  npm ERR! ../node_modules/nan/nan_object_wrap.h:67:33: warning: ‘void v8::PersistentBase&lt;T&gt;::MarkIndependent() [with T = v8::Object]’ is deprecated: Weak objects are always considered independent. Use TracedGlobal when trying to use EmbedderHeapTracer. Use a strong handle when trying to keep an object alive. [-Wdeprecated-declarations]
  npm ERR!    67 |     persistent().MarkIndependent();
  npm ERR!       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
  npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
  npm ERR!                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
  npm ERR!                  from /usr/include/nodejs/src/node.h:67,
  npm ERR!                  from ../node_modules/nan/nan.h:51,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:570:22: note: declared here
  npm ERR!   570 |       V8_INLINE void MarkIndependent());
  npm ERR!       |                      ^~~~~~~~~~~~~~~
  npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
  npm ERR!   328 |   declarator __attribute__((deprecated(message)))
  npm ERR!       |   ^~~~~~~~~~
  npm ERR! In file included from /usr/include/c++/11/cassert:44,
  npm ERR!                  from /usr/include/nodejs/src/node_object_wrap.h:26,
  npm ERR!                  from ../node_modules/nan/nan.h:53,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! ../node_modules/nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo&lt;Nan::ObjectWrap&gt;&amp;)’:
  npm ERR! ../node_modules/nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistent&lt;v8::Object&gt;’ has no member named ‘IsNearDeath’
  npm ERR!   124 |     assert(wrap-&gt;handle_.IsNearDeath());
  npm ERR!       |                          ^~~~~~~~~~~
  npm ERR! ../src/bufferutil.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE mask(Nan::NAN_METHOD_ARGS_TYPE)’:
  npm ERR! ../src/bufferutil.cc:12:63: error: no matching function for call to ‘v8::Value::Int32Value()’
  npm ERR!    12 |   char* to = node::Buffer::Data(info[2]) + info[3]-&gt;Int32Value();
  npm ERR!       |                                            ~~~~~~~~~~~~~~~~~~~^~
  npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
  npm ERR!                  from ../node_modules/nan/nan.h:51,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2709:40: note: candidate: ‘v8::Maybe&lt;int&gt; v8::Value::Int32Value(v8::Local&lt;v8::Context&gt;) const’
  npm ERR!  2709 |   V8_WARN_UNUSED_RESULT Maybe&lt;int32_t&gt; Int32Value(Local&lt;Context&gt; context) const;
  npm ERR!       |                                        ^~~~~~~~~~
  npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2709:40: note:   candidate expects 1 argument, 0 provided
  npm ERR! ../src/bufferutil.cc:13:38: error: no matching function for call to ‘v8::Value::Int32Value()’
  npm ERR!    13 |   size_t length = info[4]-&gt;Int32Value();
  npm ERR!       |                   ~~~~~~~~~~~~~~~~~~~^~
  npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
  npm ERR!                  from ../node_modules/nan/nan.h:51,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2709:40: note: candidate: ‘v8::Maybe&lt;int&gt; v8::Value::Int32Value(v8::Local&lt;v8::Context&gt;) const’
  npm ERR!  2709 |   V8_WARN_UNUSED_RESULT Maybe&lt;int32_t&gt; Int32Value(Local&lt;Context&gt; context) const;
  npm ERR!       |                                        ^~~~~~~~~~
  npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2709:40: note:   candidate expects 1 argument, 0 provided
  npm ERR! In file included from ../node_modules/nan/nan.h:51,
  npm ERR!                  from ../src/bufferutil.cc:7:
  npm ERR! ../src/bufferutil.cc: At global scope:
  npm ERR! /usr/include/nodejs/src/node.h:736:7: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local&lt;v8::Object&gt;)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local&lt;v8::Object&gt;, v8::Local&lt;v8::Value&gt;, void*)’} [-Wcast-function-type]
  npm ERR!   736 |       (node::addon_register_func) (regfunc),                          \
  npm ERR!       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  npm ERR! /usr/include/nodejs/src/node.h:770:3: note: in expansion of macro ‘NODE_MODULE_X’
  npm ERR!   770 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
  npm ERR!       |   ^~~~~~~~~~~~~
  npm ERR! ../src/bufferutil.cc:113:1: note: in expansion of macro ‘NODE_MODULE’
  npm ERR!   113 | NODE_MODULE(bufferutil, init)
  npm ERR!       | ^~~~~~~~~~~
  npm ERR! make: *** [bufferutil.target.mk:109: Release/obj.target/bufferutil/src/bufferutil.o] Error 1
  npm ERR! gyp ERR! build error 
  npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
  npm ERR! gyp ERR! stack     at ChildProcess.onExit (/usr/share/nodejs/node-gyp/lib/build.js:194:23)
  npm ERR! gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
  npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
  npm ERR! gyp ERR! System Linux 5.14.0-kali4-amd64
  npm ERR! gyp ERR! command &quot;/usr/bin/node&quot; &quot;/usr/share/nodejs/node-gyp/bin/node-gyp.js&quot; &quot;rebuild&quot;
  npm ERR! gyp ERR! cwd /home/kali/JPMC-tech-task-3-PY3/node_modules/bufferutil
  npm ERR! gyp ERR! node -v v12.22.7
  npm ERR! gyp ERR! node-gyp -v v8.4.1
  npm ERR! gyp ERR! not ok
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /home/kali/.npm/_logs/2022-01-31T10_33_28_627Z-debug-0.log`
  </code></pre>