Repository: microsoft/node-pty

Issue #438: Support node 15+
Created: 2020-11-02T00:49:33Z
Environment details

OS: Xbuntu
OS version: Ubuntu 20.04.1 LTS x86_64
node-pty version: idk

Issue description
The build has thrown up an error on node15.x.
ced@ced-VivoBook-15-ASUS-Laptop-X540MA-X543MA:~/Desktop/webash/node-script$ npm install --save express pty.js pug-static socket.io xterm
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm ERR! code 1
npm ERR! path /home/ced/Desktop/webash/node-script/node_modules/pty.js
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! make: ディレクトリ '/home/ced/Desktop/webash/node-script/node_modules/pty.js/build'　に入ります
npm ERR!   CXX(target) Release/obj.target/pty/src/unix/pty.o
npm ERR! make: ディレクトリ '/home/ced/Desktop/webash/node-script/node_modules/pty.js/build' から出ます
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@7.1.2
npm ERR! gyp info using node@15.0.1 | linux | x64
npm ERR! gyp info find Python using Python version 3.8.5 found at "/usr/bin/python3"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/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/ced/Desktop/webash/node-script/node_modules/pty.js/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/ced/.cache/node-gyp/15.0.1/include/node/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=/home/ced/.cache/node-gyp/15.0.1',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/ced/.cache/node-gyp/15.0.1/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/home/ced/Desktop/webash/node-script/node_modules/pty.js',
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.h:190,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’:
npm ERR! ../node_modules/nan/nan_maybe_43_inl.h:88:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
npm ERR!    88 |   return obj->ForceSet(GetCurrentContext(), key, value, attribs);
npm ERR!       |               ^~~~~~~~
npm ERR! In file included from ../node_modules/nan/nan_converters.h:59,
npm ERR!                  from ../node_modules/nan/nan.h:195,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)’:
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:15:43: error: cannot convert ‘v8::Local<v8::Context>’ to ‘v8::Isolate*’
npm ERR!    15 |   return val->To ## TYPE(GetCurrentContext());                                 \
npm ERR!       |                          ~~~~~~~~~~~~~~~~~^~
npm ERR!       |                                           |
npm ERR!       |                                           v8::Local<v8::Context>
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:18:1: note: in expansion of macro ‘X’
npm ERR!    18 | X(Boolean)
npm ERR!       | ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2894:37: note:   initializing argument 1 of ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’
npm ERR!  2894 |   Local<Boolean> ToBoolean(Isolate* isolate) const;
npm ERR!       |                            ~~~~~~~~~^~~~~~~
npm ERR! In file included from ../node_modules/nan/nan_converters.h:59,
npm ERR!                  from ../node_modules/nan/nan.h:195,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase<bool>::return_t Nan::imp::ToFactory<bool>::convert(v8::Local<v8::Value>)’:
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:31:46: error: cannot convert ‘v8::Local<v8::Context>’ to ‘v8::Isolate*’
npm ERR!    31 |   return val->NAME ## Value(GetCurrentContext());                              \
npm ERR!       |                             ~~~~~~~~~~~~~~~~~^~
npm ERR!       |                                              |
npm ERR!       |                                              v8::Local<v8::Context>
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:34:1: note: in expansion of macro ‘X’
npm ERR!    34 | X(bool, Boolean)
npm ERR!       | ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2904:30: note:   initializing argument 1 of ‘bool v8::Value::BooleanValue(v8::Isolate*) const’
npm ERR!  2904 |   bool BooleanValue(Isolate* isolate) const;
npm ERR!       |                     ~~~~~~~~~^~~~~~~
npm ERR! In file included from ../node_modules/nan/nan_new.h:189,
npm ERR!                  from ../node_modules/nan/nan.h:196,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)’:
npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:107:42: error: cannot convert ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’
npm ERR!   107 |   return scope.Escape(v8::Function::New( isolate
npm ERR!       |                                          ^~~~~~~
npm ERR!       |                                          |
npm ERR!       |                                          v8::Isolate*
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:4492:22: note:   initializing argument 1 of ‘static v8::MaybeLocal<v8::Function> v8::Function::New(v8::Local<v8::Context>, v8::FunctionCallback, v8::Local<v8::Value>, int, v8::ConstructorBehavior, v8::SideEffectType)’
npm ERR!  4492 |       Local<Context> 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:196,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)’:
npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:345:37: error: no matching function for call to ‘v8::StringObject::New(v8::Local<v8::String>&)’
npm ERR!   345 |   return v8::StringObject::New(value).As<v8::StringObject>();
npm ERR!       |                                     ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:5893:23: note: candidate: ‘static v8::Local<v8::Value> v8::StringObject::New(v8::Isolate*, v8::Local<v8::String>)’
npm ERR!  5893 |   static Local<Value> New(Isolate* isolate, Local<String> value);
npm ERR!       |                       ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:5893: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:196,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:345:58: error: expected primary-expression before ‘>’ token
npm ERR!   345 |   return v8::StringObject::New(value).As<v8::StringObject>();
npm ERR!       |                                                          ^
npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:345:60: error: expected primary-expression before ‘)’ token
npm ERR!   345 |   return v8::StringObject::New(value).As<v8::StringObject>();
npm ERR!       |                                                            ^
npm ERR! In file included from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
npm ERR! ../node_modules/nan/nan.h:817:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR!   817 |         v8::Isolate::GetCurrent(), target, func, argc, argv);
npm ERR!       |                                                            ^
npm ERR! In file included from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:191:50: note: declared here
npm ERR!   191 |                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
npm ERR!       |                                                  ^~~~~~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’
npm ERR!   108 |     __attribute__((deprecated(message))) declarator
npm ERR!       |                                          ^~~~~~~~~~
npm ERR! In file included from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan.h:817:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR!   817 |         v8::Isolate::GetCurrent(), target, func, argc, argv);
npm ERR!       |                                                            ^
npm ERR! In file included from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:191:50: note: declared here
npm ERR!   191 |                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
npm ERR!       |                                                  ^~~~~~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’
npm ERR!   108 |     __attribute__((deprecated(message))) declarator
npm ERR!       |                                          ^~~~~~~~~~
npm ERR! In file included from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
npm ERR! ../node_modules/nan/nan.h:831:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR!   831 |         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
npm ERR!       |                                                              ^
npm ERR! In file included from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:184:50: note: declared here
npm ERR!   184 |                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
npm ERR!       |                                                  ^~~~~~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’
npm ERR!   108 |     __attribute__((deprecated(message))) declarator
npm ERR!       |                                          ^~~~~~~~~~
npm ERR! In file included from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan.h:831:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR!   831 |         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
npm ERR!       |                                                              ^
npm ERR! In file included from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:184:50: note: declared here
npm ERR!   184 |                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
npm ERR!       |                                                  ^~~~~~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’
npm ERR!   108 |     __attribute__((deprecated(message))) declarator
npm ERR!       |                                          ^~~~~~~~~~
npm ERR! In file included from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
npm ERR! ../node_modules/nan/nan.h:845:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR!   845 |         v8::Isolate::GetCurrent(), target, method, argc, argv);
npm ERR!       |                                                              ^
npm ERR! In file included from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:177:50: note: declared here
npm ERR!   177 |                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
npm ERR!       |                                                  ^~~~~~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’
npm ERR!   108 |     __attribute__((deprecated(message))) declarator
npm ERR!       |                                          ^~~~~~~~~~
npm ERR! In file included from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan.h:845:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR!   845 |         v8::Isolate::GetCurrent(), target, method, argc, argv);
npm ERR!       |                                                              ^
npm ERR! In file included from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:177:50: note: declared here
npm ERR!   177 |                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
npm ERR!       |                                                  ^~~~~~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’
npm ERR!   108 |     __attribute__((deprecated(message))) declarator
npm ERR!       |                                          ^~~~~~~~~~
npm ERR! In file included from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’:
npm ERR! ../node_modules/nan/nan.h:890:53: error: no matching function for call to ‘v8::Value::ToString()’
npm ERR!   890 |       v8::Local<v8::String> string = from->ToString();
npm ERR!       |                                                     ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2856:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’
npm ERR!  2856 |   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2856:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan.h:900:37: error: cannot convert ‘char*’ to ‘v8::Isolate*’
npm ERR!   900 |         length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
npm ERR!       |                                     ^~~~
npm ERR!       |                                     |
npm ERR!       |                                     char*
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3083:26: note:   initializing argument 1 of ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’
npm ERR!  3083 |   int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
npm ERR!       |                 ~~~~~~~~~^~~~~~~
npm ERR! In file included from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan.h: In member function ‘bool Nan::Callback::operator==(const Nan::Callback&) const’:
npm ERR! ../node_modules/nan/nan.h:1371:61: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’
npm ERR!  1371 |     v8::Local<v8::Value> a = New(handle)->Get(kCallbackIndex);
npm ERR!       |                                                             ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3763:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!  3763 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3763:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3766:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!  3766 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3766:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan.h:1372:67: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’
npm ERR!  1372 |     v8::Local<v8::Value> b = New(other.handle)->Get(kCallbackIndex);
npm ERR!       |                                                                   ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3763:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!  3763 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3763:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3766:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!  3766 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3766:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Function> Nan::Callback::GetFunction() const’:
npm ERR! ../node_modules/nan/nan.h:1403:56: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’
npm ERR!  1403 |     return scope.Escape(New(handle)->Get(kCallbackIndex)
npm ERR!       |                                                        ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3763:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!  3763 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3763:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3766:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!  3766 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3766:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan.h:1404:25: error: expected primary-expression before ‘>’ token
npm ERR!  1404 |         .As<v8::Function>());
npm ERR!       |                         ^
npm ERR! ../node_modules/nan/nan.h:1404:27: error: expected primary-expression before ‘)’ token
npm ERR!  1404 |         .As<v8::Function>());
npm ERR!       |                           ^
npm ERR! ../node_modules/nan/nan.h: In member function ‘bool Nan::Callback::IsEmpty() const’:
npm ERR! ../node_modules/nan/nan.h:1409:43: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’
npm ERR!  1409 |     return New(handle)->Get(kCallbackIndex)->IsUndefined();
npm ERR!       |                                           ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3763:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!  3763 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3763:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3766:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!  3766 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3766:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
npm ERR! ../node_modules/nan/nan.h:1447:27: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’
npm ERR!  1447 |         Get(kCallbackIndex).As<v8::Function>();
npm ERR!       |                           ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3763:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!  3763 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3763:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3766:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!  3766 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3766:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan.h:1447:44: error: expected primary-expression before ‘>’ token
npm ERR!  1447 |         Get(kCallbackIndex).As<v8::Function>();
npm ERR!       |                                            ^
npm ERR! ../node_modules/nan/nan.h:1447:46: error: expected primary-expression before ‘)’ token
npm ERR!  1447 |         Get(kCallbackIndex).As<v8::Function>();
npm ERR!       |                                              ^
npm ERR! ../node_modules/nan/nan.h:1463:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR!  1463 |     ));
npm ERR!       |     ^
npm ERR! In file included from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:191:50: note: declared here
npm ERR!   191 |                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
npm ERR!       |                                                  ^~~~~~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’
npm ERR!   108 |     __attribute__((deprecated(message))) declarator
npm ERR!       |                                          ^~~~~~~~~~
npm ERR! In file included from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan.h:1463:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR!  1463 |     ));
npm ERR!       |     ^
npm ERR! In file included from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:191:50: note: declared here
npm ERR!   191 |                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
npm ERR!       |                                                  ^~~~~~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’
npm ERR!   108 |     __attribute__((deprecated(message))) declarator
npm ERR!       |                                          ^~~~~~~~~~
npm ERR! In file included from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:
npm ERR! ../node_modules/nan/nan.h:1518:64: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, const v8::Local<v8::Value>&)’
npm ERR!  1518 |     New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
npm ERR!       |                                                                ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3716:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR!  3716 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!       |                                     ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3716:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3719:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR!  3719 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!       |                                     ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3719:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! In file included from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’:
npm ERR! ../node_modules/nan/nan.h:1524:42: error: no matching function for call to ‘v8::Object::Set(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’
npm ERR!  1524 |     New(persistentHandle)->Set(key, value);
npm ERR!       |                                          ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3716:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR!  3716 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!       |                                     ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3716:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3719:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR!  3719 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!       |                                     ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3719:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! In file included from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local<v8::Value>&)’:
npm ERR! ../node_modules/nan/nan.h:1530:44: error: no matching function for call to ‘v8::Object::Set(uint32_t&, const v8::Local<v8::Value>&)’
npm ERR!  1530 |     New(persistentHandle)->Set(index, value);
npm ERR!       |                                            ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3716:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR!  3716 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!       |                                     ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3716:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3719:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR!  3719 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!       |                                     ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3719:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! In file included from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:
npm ERR! ../node_modules/nan/nan.h:1536:61: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’
npm ERR!  1536 |         New(persistentHandle)->Get(New(key).ToLocalChecked()));
npm ERR!       |                                                             ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3763:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!  3763 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3763:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3766:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!  3766 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3766:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const v8::Local<v8::String>&) const’:
npm ERR! ../node_modules/nan/nan.h:1542:55: error: no matching function for call to ‘v8::Object::Get(const v8::Local<v8::String>&)’
npm ERR!  1542 |     return scope.Escape(New(persistentHandle)->Get(key));
npm ERR!       |                                                       ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3763:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!  3763 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3763:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3766:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!  3766 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3766:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
npm ERR! ../node_modules/nan/nan.h:1547:57: error: no matching function for call to ‘v8::Object::Get(uint32_t&)’
npm ERR!  1547 |     return scope.Escape(New(persistentHandle)->Get(index));
npm ERR!       |                                                         ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3763:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!  3763 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3763:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3766:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!  3766 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3766:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
npm ERR! ../node_modules/nan/nan.h:1706:62: 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!  1706 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
npm ERR!       |                                                              ^
npm ERR! In file included from /usr/include/c++/9/cassert:44,
npm ERR!                  from /home/ced/.cache/node-gyp/15.0.1/include/node/node_object_wrap.h:26,
npm ERR!                  from ../node_modules/nan/nan.h:49,
npm ERR!                  from ../src/unix/pty.cc:20:
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<v8::Object>’ has no member named ‘IsNearDeath’
npm ERR!    24 |     assert(persistent().IsNearDeath());
npm ERR!       |                         ^~~~~~~~~~~
npm ERR! In file included from ../node_modules/nan/nan.h:2192,
npm ERR!                  from ../src/unix/pty.cc:20:
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:18: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘MarkIndependent’
npm ERR!    67 |     persistent().MarkIndependent();
npm ERR!       |                  ^~~~~~~~~~~~~~~
npm ERR! In file included from /usr/include/c++/9/cassert:44,
npm ERR!                  from /home/ced/.cache/node-gyp/15.0.1/include/node/node_object_wrap.h:26,
npm ERR!                  from ../node_modules/nan/nan.h:49,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’:
npm ERR! ../node_modules/nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
npm ERR!   124 |     assert(wrap->handle_.IsNearDeath());
npm ERR!       |                          ^~~~~~~~~~~
npm ERR! ../src/unix/pty.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE PtyFork(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/unix/pty.cc:164:44: error: no matching function for call to ‘v8::Value::ToString()’
npm ERR!   164 |   String::Utf8Value file(info[0]->ToString());
npm ERR!       |                                            ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2856:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’
npm ERR!  2856 |   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2856:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix/pty.cc:175:58: error: no matching function for call to ‘v8::Array::Get(Nan::imp::IntegerFactory<v8::Integer>::return_t)’
npm ERR!   175 |     String::Utf8Value arg(argv_->Get(Nan::New<Integer>(i))->ToString());
npm ERR!       |                                                          ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3763:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!  3763 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3763:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3766:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!  3766 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3766:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! ../src/unix/pty.cc:186:58: error: no matching function for call to ‘v8::Array::Get(Nan::imp::IntegerFactory<v8::Integer>::return_t)’
npm ERR!   186 |     String::Utf8Value pair(env_->Get(Nan::New<Integer>(i))->ToString());
npm ERR!       |                                                          ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3763:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!  3763 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3763:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3766:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!  3766 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:3766:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! ../src/unix/pty.cc:191:44: error: no matching function for call to ‘v8::Value::ToString()’
npm ERR!   191 |   String::Utf8Value cwd_(info[3]->ToString());
npm ERR!       |                                            ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2856:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’
npm ERR!  2856 |   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2856:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix/pty.cc:196:39: error: no matching function for call to ‘v8::Value::IntegerValue()’
npm ERR!   196 |   winp.ws_col = info[4]->IntegerValue();
npm ERR!       |                                       ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2909:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
npm ERR!  2909 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
npm ERR!       |                                        ^~~~~~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2909:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix/pty.cc:197:39: error: no matching function for call to ‘v8::Value::IntegerValue()’
npm ERR!   197 |   winp.ws_row = info[5]->IntegerValue();
npm ERR!       |                                       ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2909:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
npm ERR!  2909 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
npm ERR!       |                                        ^~~~~~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2909:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix/pty.cc:202:35: error: no matching function for call to ‘v8::Value::IntegerValue()’
npm ERR!   202 |   int uid = info[6]->IntegerValue();
npm ERR!       |                                   ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2909:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
npm ERR!  2909 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
npm ERR!       |                                        ^~~~~~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2909:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix/pty.cc:203:35: error: no matching function for call to ‘v8::Value::IntegerValue()’
npm ERR!   203 |   int gid = info[7]->IntegerValue();
npm ERR!       |                                   ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2909:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
npm ERR!  2909 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
npm ERR!       |                                        ^~~~~~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2909:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix/pty.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE PtyOpen(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/unix/pty.cc:288:39: error: no matching function for call to ‘v8::Value::IntegerValue()’
npm ERR!   288 |   winp.ws_col = info[0]->IntegerValue();
npm ERR!       |                                       ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2909:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
npm ERR!  2909 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
npm ERR!       |                                        ^~~~~~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2909:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix/pty.cc:289:39: error: no matching function for call to ‘v8::Value::IntegerValue()’
npm ERR!   289 |   winp.ws_row = info[1]->IntegerValue();
npm ERR!       |                                       ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2909:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
npm ERR!  2909 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
npm ERR!       |                                        ^~~~~~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2909:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix/pty.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE PtyResize(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/unix/pty.cc:339:34: error: no matching function for call to ‘v8::Value::IntegerValue()’
npm ERR!   339 |   int fd = info[0]->IntegerValue();
npm ERR!       |                                  ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2909:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
npm ERR!  2909 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
npm ERR!       |                                        ^~~~~~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2909:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix/pty.cc:342:39: error: no matching function for call to ‘v8::Value::IntegerValue()’
npm ERR!   342 |   winp.ws_col = info[1]->IntegerValue();
npm ERR!       |                                       ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2909:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
npm ERR!  2909 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
npm ERR!       |                                        ^~~~~~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2909:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix/pty.cc:343:39: error: no matching function for call to ‘v8::Value::IntegerValue()’
npm ERR!   343 |   winp.ws_row = info[2]->IntegerValue();
npm ERR!       |                                       ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2909:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
npm ERR!  2909 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
npm ERR!       |                                        ^~~~~~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2909:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix/pty.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE PtyGetProc(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/unix/pty.cc:369:34: error: no matching function for call to ‘v8::Value::IntegerValue()’
npm ERR!   369 |   int fd = info[0]->IntegerValue();
npm ERR!       |                                  ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2909:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
npm ERR!  2909 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
npm ERR!       |                                        ^~~~~~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2909:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix/pty.cc:371:44: error: no matching function for call to ‘v8::Value::ToString()’
npm ERR!   371 |   String::Utf8Value tty_(info[1]->ToString());
npm ERR!       |                                            ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2856:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’
npm ERR!  2856 |   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:2856:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix/pty.cc: In function ‘void pty_after_waitpid(uv_async_t*)’:
npm ERR! ../src/unix/pty.cc:470:43: warning: ‘void* memset(void*, int, size_t)’ writing to an object of type ‘class Nan::Persistent<v8::Function>’ with no trivial copy-assignment [-Wclass-memaccess]
npm ERR!   470 |   memset(&baton->cb, -1, sizeof(baton->cb));
npm ERR!       |                                           ^
npm ERR! In file included from ../node_modules/nan/nan.h:311,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! ../node_modules/nan/nan_persistent_12_inl.h:12:40: note: ‘class Nan::Persistent<v8::Function>’ declared here
npm ERR!    12 | template<typename T, typename M> class Persistent :
npm ERR!       |                                        ^~~~~~~~~~
npm ERR! ../src/unix/pty.cc: In function ‘void init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’:
npm ERR! ../src/unix/pty.cc:684:54: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
npm ERR!   684 |     Nan::New<FunctionTemplate>(PtyFork)->GetFunction());
npm ERR!       |                                                      ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:6490:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
npm ERR!  6490 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
npm ERR!       |                                              ^~~~~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:6490:46: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix/pty.cc:687:54: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
npm ERR!   687 |     Nan::New<FunctionTemplate>(PtyOpen)->GetFunction());
npm ERR!       |                                                      ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:6490:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
npm ERR!  6490 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
npm ERR!       |                                              ^~~~~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:6490:46: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix/pty.cc:690:56: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
npm ERR!   690 |     Nan::New<FunctionTemplate>(PtyResize)->GetFunction());
npm ERR!       |                                                        ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:6490:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
npm ERR!  6490 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
npm ERR!       |                                              ^~~~~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:6490:46: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix/pty.cc:693:57: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
npm ERR!   693 |     Nan::New<FunctionTemplate>(PtyGetProc)->GetFunction());
npm ERR!       |                                                         ^
npm ERR! In file included from /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:67,
npm ERR!                  from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:6490:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
npm ERR!  6490 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
npm ERR!       |                                              ^~~~~~~~~~~
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/v8.h:6490:46: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../node_modules/nan/nan.h:47,
npm ERR!                  from ../src/unix/pty.cc:20:
npm ERR! ../src/unix/pty.cc: At global scope:
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:842:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
npm ERR!   842 |       (node::addon_register_func) (regfunc),                          \
npm ERR!       |                                           ^
npm ERR! /home/ced/.cache/node-gyp/15.0.1/include/node/node.h:876:3: note: in expansion of macro ‘NODE_MODULE_X’
npm ERR!   876 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
npm ERR!       |   ^~~~~~~~~~~~~
npm ERR! ../src/unix/pty.cc:696:1: note: in expansion of macro ‘NODE_MODULE’
npm ERR!   696 | NODE_MODULE(pty, init)
npm ERR!       | ^~~~~~~~~~~
npm ERR! ../src/unix/pty.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE PtyFork(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/unix/pty.cc:222:29: warning: ignoring return value of ‘int chdir(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
npm ERR!   222 |       if (strlen(cwd)) chdir(cwd);
npm ERR!       |                        ~~~~~^~~~~
npm ERR! make: *** [pty.target.mk:111: Release/obj.target/pty/src/unix/pty.o] エラー 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/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:327:20)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:277:12)
npm ERR! gyp ERR! System Linux 5.4.0-52-generic
npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /home/ced/Desktop/webash/node-script/node_modules/pty.js
npm ERR! gyp ERR! node -v v15.0.1
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ced/.npm/_logs/2020-11-02T00_48_43_592Z-debug.log

Duplicate issue #527: Install error on Node 17
Created: 2022-02-16T19:49:09Z
Environment details

OS: MacOS Monterey
OS version: 12.2.1
node-pty version: 0.10.1 and 0.11.0-beta17
Node version: 17.5.0

Issue description
Under Node 17 when I try to install node-pty I get the following console output:

npm ERR! code 1
npm ERR! path /Users/jens/Documents/Projects/Personal/SteamCMD-JS-Interface/node_modules/node-pty
npm ERR! command failed
npm ERR! command sh -c node scripts/install.js
npm ERR! CXX(target) Release/obj.target/pty/src/unix/pty.o
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@17.5.0 | darwin | x64
npm ERR! gyp info find Python using Python version 3.9.10 found at "/usr/local/opt/python@3.9/bin/python3.9"
npm ERR! gyp info spawn /usr/local/opt/python@3.9/bin/python3.9
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/Users/jens/.nvm/versions/node/v17.5.0/lib/node_modules/npm/node_modules/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   '/Users/jens/Documents/Projects/Personal/SteamCMD-JS-Interface/node_modules/node-pty/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/jens/.nvm/versions/node/v17.5.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/jens/Library/Caches/node-gyp/17.5.0/include/node/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=/Users/jens/Library/Caches/node-gyp/17.5.0',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/Users/jens/.nvm/versions/node/v17.5.0/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/Users/jens/Library/Caches/node-gyp/17.5.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/Users/jens/Documents/Projects/Personal/SteamCMD-JS-Interface/node_modules/node-pty',
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 ../src/unix/pty.cc:20:
npm ERR! In file included from ../../nan/nan.h:2884:
npm ERR! ../../nan/nan_typedarray_contents.h:34:43: error: no member named 'GetContents' in 'v8::ArrayBuffer'
npm ERR!       data   = static_cast<char*>(buffer->GetContents().Data()) + byte_offset;
npm ERR!                                   ~~~~~~~~^
npm ERR! 1 error generated.
npm ERR! make: *** [Release/obj.target/pty/src/unix/pty.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 (/Users/jens/.nvm/versions/node/v17.5.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:526:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Darwin 21.3.0
npm ERR! gyp ERR! command "/Users/jens/.nvm/versions/node/v17.5.0/bin/node" "/Users/jens/.nvm/versions/node/v17.5.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /Users/jens/Documents/Projects/Personal/SteamCMD-JS-Interface/node_modules/node-pty
npm ERR! gyp ERR! node -v v17.5.0
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!     /Users/jens/.npm/_logs/2022-02-16T19_37_07_224Z-debug-0.log


This doesn't happen on Node <= 16.
This SO answer suggests that GetContents was replaced by GetBackingStore.

Closing comment (2022-02-16T19:58:54Z): /duplicate #438