hpeinar / stardewplanner

Stardew Valley farm planner
Apache License 2.0
243 stars 51 forks source link

[BUG] npm install fails using node v14.15.3 #59

Closed mishagp closed 1 year ago

mishagp commented 3 years ago

Repro

  1. Clone repository
  2. npm install

Commentary

Looks like the libxmljs library isn't actively maintained anymore, and is incompatible with node 12+ according to this account from 2019: https://github.com/libxmljs/libxmljs/issues/549#issuecomment-498248651

I was able to run npm install and boot the server successfully by switching out the package for libxmljs2 See my implementation here: https://github.com/mishagp/stardewplanner/commit/91241704d57f243f54d2e95b3042e32604992d36

@hpeinar Would package upkeep along these lines be a valuable contribution or should I target an older node version for any further contributions?

Environment/Versions

macOS 11.3.1 (Darwin kernel 20.4.0) node v14.15.3 npm v7.13.0 libxmljs 0.18.7

Error log

988 verbose pkgid libxmljs@0.18.7
989 verbose cwd /Users/misha/stardewplanner
990 verbose Darwin 20.4.0
991 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
992 verbose node v14.15.3
993 verbose npm  v7.13.0
994 error code 1
995 error path /Users/misha/stardewplanner/node_modules/libxmljs
996 error command failed
997 error command sh -c node-pre-gyp install --fallback-to-build --loglevel http
998 error CXX(target) Release/obj.target/xmljs/src/libxmljs.o
998 error   CXX(target) Release/obj.target/xmljs/src/libxmljs.o
998 error Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --loglevel=http --module=/Users/misha/stardewplanner/node_modules/libxmljs/build/Release/xmljs.node --module_name=xmljs --module_path=/Users/misha/stardewplanner/node_modules/libxmljs/build/Release' (1)
999 error node-pre-gyp http GET https://github.com/libxmljs/libxmljs/releases/download/v0.18.7/node-v83-darwin-x64.tar.gz
999 error node-pre-gyp http 404 https://github.com/libxmljs/libxmljs/releases/download/v0.18.7/node-v83-darwin-x64.tar.gz
999 error node-pre-gyp ERR! Tried to download(404): https://github.com/libxmljs/libxmljs/releases/download/v0.18.7/node-v83-darwin-x64.tar.gz
999 error node-pre-gyp ERR! Pre-built binaries not found for libxmljs@0.18.7 and node@14.15.3 (node-v83 ABI) (falling back to source compile with node-gyp)
999 error node-pre-gyp http 404 status code downloading tarball https://github.com/libxmljs/libxmljs/releases/download/v0.18.7/node-v83-darwin-x64.tar.gz
999 error node-pre-gyp ERR! Tried to download(undefined): https://github.com/libxmljs/libxmljs/releases/download/v0.18.7/node-v83-darwin-x64.tar.gz
999 error node-pre-gyp ERR! Pre-built binaries not found for libxmljs@0.18.7 and node@14.15.3 (node-v83 ABI) (falling back to source compile with node-gyp)
999 error node-pre-gyp http Connection closed while downloading tarball file
999 error gyp info it worked if it ends with ok
999 error gyp info using node-gyp@7.1.2
999 error gyp info using node@14.15.3 | darwin | x64
999 error gyp info it worked if it ends with ok
999 error gyp info using node-gyp@7.1.2
999 error gyp info using node@14.15.3 | darwin | x64
999 error gyp info ok
999 error gyp info ok
999 error No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
999 error No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
999 error
999 error
999 error No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
999 error No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
999 error
999 error
999 error No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
999 error No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
999 error
999 error
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error In file included from ../node_modules/nan/nan.h:190:
999 error ../node_modules/nan/nan_maybe_43_inl.h:112:15: error: no member named 'ForceSet' in 'v8::Object'
999 error   return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
999 error          ~~~~~^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error In file included from ../node_modules/nan/nan.h:190:
999 error ../node_modules/nan/nan_maybe_43_inl.h:112:15: error: no member named 'ForceSet' in 'v8::Object'
999 error   return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
999 error          ~~~~~^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error In file included from ../node_modules/nan/nan.h:195:
999 error In file included from ../node_modules/nan/nan_converters.h:59:
999 error ../node_modules/nan/nan_converters_43_inl.hIn file included from ../src/libxmljs.cc::22:1: error: no viable conversion from 'Local<v8::Context>' to 'v8::Isolate *'
999 error 7:
999 error In file included from ../src/libxmljs.h:7:
999 error In file included from ../node_modules/nan/nan.h:195:
999 error In file included from ../node_modules/nan/nan_converters.h:X(Boolean)
999 error 59:
999 error ../node_modules/nan/nan_converters_43_inl.h^~~~~~~~~~
999 error :22:../node_modules/nan/nan_converters_43_inl.h:18:23:1: error note: : no viable conversion from 'Local<v8::Context>' to 'v8::Isolate *'
999 error expanded from macro 'X'
999 error X(Boolean)
999 error ^~~~~~~~~~
999 error ../node_modules/nan/nan_converters_43_inl.h:18:23: note: expanded from macro 'X'
999 error       val->To ## TYPE(v8::Isolate::GetCurrent()->GetCurrentContext())          \
999 error                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
999 error       val->To ## TYPE(v8::Isolate::GetCurrent()->GetCurrentContext())          \
999 error                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:2848:37: note: passing argument to parameter 'isolate' here
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:2848:37: note:   Local<Boolean> ToBoolean(Isolate* isolate) const;
999 error passing argument to parameter 'isolate' here
999 error                                     ^
999 error   Local<Boolean> ToBoolean(Isolate* isolate) const;
999 error                                     ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error In file included from ../node_modules/nan/nan.h:195:
999 error In file included from ../node_modules/nan/nan_converters.h:59:
999 error ../node_modules/nan/nan_converters_43_inl.h:40:1: error: no viable conversion from 'Local<v8::Context>' to 'v8::Isolate *'
999 error X(bool, Boolean)
999 error ^~~~~~~~~~~~~~~~
999 error ../node_modules/nan/nan_converters_43_inl.h:37:29: note: expanded from macro 'X'
999 error   return val->NAME ## Value(isolate->GetCurrentContext());                     \
999 error                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:2858:30: note: passing argument to parameter 'isolate' here
999 error   bool BooleanValue(Isolate* isolate) const;
999 error                              ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error In file included from ../node_modules/nan/nan.h:195:
999 error In file included from ../node_modules/nan/nan_converters.h:59:
999 error ../node_modules/nan/nan_converters_43_inl.h:40:1: error: no viable conversion from 'Local<v8::Context>' to 'v8::Isolate *'
999 error X(bool, Boolean)
999 error ^~~~~~~~~~~~~~~~
999 error ../node_modules/nan/nan_converters_43_inl.h:37:29: note: expanded from macro 'X'
999 error   return val->NAME ## Value(isolate->GetCurrentContext());                     \
999 error                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:2858:30: note: passing argument to parameter 'isolate' here
999 error   bool BooleanValue(Isolate* isolate) const;
999 error                              ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error In file included from ../node_modules/nan/nan.h:196:
999 error In file included from ../node_modules/nan/nan_new.h:189:
999 error ../node_modules/nan/nan_implementation_12_inl.h:103:42: error: no viable conversion from 'v8::Isolate *' to 'Local<v8::Context>'
999 error   return scope.Escape(v8::Function::New( isolate
999 error                                          ^~~~~~~
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:190:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::Isolate *' to 'const v8::Local<v8::Context> &' for 1st argument
999 error class Local {
999 error       ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:190:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::Isolate *' to 'v8::Local<v8::Context> &&' for 1st argument
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:194:13: note: candidate template ignored: could not match 'Local<type-parameter-0-0>' against 'v8::Isolate *'
999 error   V8_INLINE Local(Local<S> that)
999 error             ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:337:22: note: explicit constructor is not a candidate
999 error   explicit V8_INLINE Local(T* that) : val_(that) {}
999 error                      ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:4446:22: note: passing argument to parameter 'context' here
999 error       Local<Context> context, FunctionCallback callback,
999 error                      ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error In file included from ../node_modules/nan/nan.h:196:
999 error In file included from ../node_modules/nan/nan_new.h:189:
999 error ../node_modules/nan/nan_implementation_12_inl.h:103:42: error: no viable conversion from 'v8::Isolate *' to 'Local<v8::Context>'
999 error   return scope.Escape(v8::Function::New( isolate
999 error                                          ^~~~~~~
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:190:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::Isolate *' to 'const v8::Local<v8::Context> &' for 1st argument
999 error class Local {
999 error       ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:190:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::Isolate *' to 'v8::Local<v8::Context> &&' for 1st argument
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:194:13: note: candidate template ignored: could not match 'Local<type-parameter-0-0>' against 'v8::Isolate *'
999 error   V8_INLINE Local(Local<S> that)
999 error             ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:337:22: note: explicit constructor is not a candidate
999 error   explicit V8_INLINE Local(T* that) : val_(that) {}
999 error                      ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:4446:22: note: passing argument to parameter 'context' here
999 error       Local<Context> context, FunctionCallback callback,
999 error                      ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error In file included from ../node_modules/nan/nan.h:196:
999 error In file included from ../node_modules/nan/nan_new.h:189:
999 error ../node_modules/nan/nan_implementation_12_inl.h:337:37: error: too few arguments to function call, expected 2, have 1
999 error   return v8::StringObject::New(value).As<v8::StringObject>();
999 error          ~~~~~~~~~~~~~~~~~~~~~      ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:5854:23: note: 'New' declared here
999 error   static Local<Value> New(Isolate* isolate, Local<String> value);
999 error                       ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error In file included from ../node_modules/nan/nan.h:196:
999 error In file included from ../node_modules/nan/nan_new.h:189:
999 error ../node_modules/nan/nan_implementation_12_inl.h:337:37: error: too few arguments to function call, expected 2, have 1
999 error   return v8::StringObject::New(value).As<v8::StringObject>();
999 error          ~~~~~~~~~~~~~~~~~~~~~      ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:5854:23: note: 'New' declared here
999 error   static Local<Value> New(Isolate* isolate, Local<String> value);
999 error                       ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error ../node_modules/nan/nan.h:832:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
999 error     return node::MakeCallback(
999 error                  ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/node.h:190:1: note: 'MakeCallback' has been explicitly marked deprecated here
999 error NODE_DEPRECATED("Use MakeCallback(..., async_context)",
999 error ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/node.h:108:20: note: expanded from macro 'NODE_DEPRECATED'
999 error     __attribute__((deprecated(message))) declarator
999 error                    ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error ../node_modules/nan/nan.h:832:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
999 error     return node::MakeCallback(
999 error                  ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/node.h:190:1: note: 'MakeCallback' has been explicitly marked deprecated here
999 error NODE_DEPRECATED("Use MakeCallback(..., async_context)",
999 error ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/node.h:108:20: note: expanded from macro 'NODE_DEPRECATED'
999 error     __attribute__((deprecated(message))) declarator
999 error                    ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error ../node_modules/nan/nan.h:847:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
999 error     return node::MakeCallback(
999 error                  ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/node.h:183:1: note: 'MakeCallback' has been explicitly marked deprecated here
999 error NODE_DEPRECATED("Use MakeCallback(..., async_context)",
999 error ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/node.h:108:20: note: expanded from macro 'NODE_DEPRECATED'
999 error     __attribute__((deprecated(message))) declarator
999 error                    ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error ../node_modules/nan/nan.h:847:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
999 error     return node::MakeCallback(
999 error                  ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/node.h:183:1: note: 'MakeCallback' has been explicitly marked deprecated here
999 error NODE_DEPRECATED("Use MakeCallback(..., async_context)",
999 error ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/node.h:108:20: note: expanded from macro 'NODE_DEPRECATED'
999 error In file included from ../src/libxmljs.cc:7    __attribute__((deprecated(message))) declarator
999 error                    ^
999 error :
999 error In file included from ../src/libxmljs.h:7:
999 error ../node_modules/nan/nan.h:862:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
999 error     return node::MakeCallback(
999 error                  ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/node.h:176:1: note: 'MakeCallback' has been explicitly marked deprecated here
999 error NODE_DEPRECATED("Use MakeCallback(..., async_context)",
999 error ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/node.h:108:20: note: expanded from macro 'NODE_DEPRECATED'
999 error     __attribute__((deprecated(message))) declarator
999 error                    ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error ../node_modules/nan/nan.h:862:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
999 error     return node::MakeCallback(
999 error                  ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/node.h:176:1: note: 'MakeCallback' has been explicitly marked deprecated here
999 error NODE_DEPRECATED("Use MakeCallback(..., async_context)",
999 error ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/node.h:108:20: note: expanded from macro 'NODE_DEPRECATED'
999 error     __attribute__((deprecated(message))) declarator
999 error                    ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error ../node_modules/nan/nan.h:909:53: error: too few arguments to function call, single argument 'context' was not specified
999 error       v8::Local<v8::String> string = from->ToString();
999 error                                      ~~~~~~~~~~~~~~ ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:2810:44: note: 'ToString' declared here
999 error   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
999 error                                            ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error ../node_modules/nan/nan.h:909:53: error: too few arguments to function call, single argument 'context' was not specified
999 error       v8::Local<v8::String> string = from->ToString();
999 error                                      ~~~~~~~~~~~~~~ ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:2810:44: note: 'ToString' declared here
999 error   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
999 error                                            ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error ../node_modules/nan/nan.h:919:37: error: cannot initialize a parameter of type 'v8::Isolate *' with an lvalue of type 'char *'
999 error         length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
999 error                                     ^~~~
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:3037:26: note: passing argument to parameter 'isolate' here
999 error   int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
999 error                          ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error ../node_modules/nan/nan.h:919:37: error: cannot initialize a parameter of type 'v8::Isolate *' with an lvalue of type 'char *'
999 error         length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
999 error                                     ^~~~
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:3037:26: note: passing argument to parameter 'isolate' here
999 error   int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
999 error                          ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error ../node_modules/nan/nan.h:1471:31: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
999 error     return scope.Escape(node::MakeCallback(
999 error                               ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/node.h:190:1: note: 'MakeCallback' has been explicitly marked deprecated here
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:NODE_DEPRECATED("Use MakeCallback(..., async_context)",
999 error ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/node.h:108:20: note: expanded from macro 'NODE_DEPRECATED'
999 error 7    __attribute__((deprecated(message))) declarator:
999 error ../node_modules/nan/nan.h:
999 error 1471:                   ^
999 error 31: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
999 error     return scope.Escape(node::MakeCallback(
999 error                               ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/node.h:190:1: note: 'MakeCallback' has been explicitly marked deprecated here
999 error NODE_DEPRECATED("Use MakeCallback(..., async_context)",
999 error ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/node.h:108:20: note: expanded from macro 'NODE_DEPRECATED'
999 error     __attribute__((deprecated(message))) declarator
999 error                    ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error ../node_modules/nan/nan.h:1531:28: error: no matching member function for call to 'Set'
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error ../node_modules/nan/nan.h:1531    New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
999 error     ~~~~~~~~~~~~~~~~~~~~~~~^~~:
999 error 28: error: no matching member function for call to 'Set'
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:3670:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
999 error     New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
999 error     ~~~~~~~~~~~~~~~~~~~~~~~^~~
999 error   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
999 error                                     ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:3673/Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:3670:37:37: : note: candidate function not viable: requires 3 arguments, but 2 were providednote:
999 error candidate function not viable: requires 3 arguments, but 2 were provided
999 error   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
999 error                                     ^
999 error   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:3673                                    ^
999 error :37: note: candidate function not viable: requires 3 arguments, but 2 were provided
999 error   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
999 error                                     ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error ../node_modules/nan/nan.h:1537:28: error: no matching member function for call to 'Set'
999 error     New(persistentHandle)->Set(key, value);
999 error     ~~~~~~~~~~~~~~~~~~~~~~~^~~
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:3670:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error ../node_modules/nan/nan.h:  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
999 error                                     ^
999 error 1537:28: /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:error3673:: no matching member function for call to 'Set'37: note:
999 error candidate function not viable: requires 3 arguments, but 2 were provided
999 error     New(persistentHandle)->Set(key, value);
999 error     ~~~~~~~~~~~~~~~~~~~~~~~^~~
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:3670:37  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
999 error :                                    ^
999 error  note: candidate function not viable: requires 3 arguments, but 2 were provided
999 error   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
999 error                                     ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:3673:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
999 error   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
999 error                                     ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error ../node_modules/nan/nan.h:1543:28: error: no matching member function for call to 'Set'
999 error     New(persistentHandle)->Set(index, value);
999 error     ~~~~~~~~~~~~~~~~~~~~~~~^~~
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:3670:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
999 error In file included from ../src/libxmljs.cc  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
999 error                                     ^
999 error :/Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h7:3673:37: :
999 error In file included from ../src/libxmljs.h:note: candidate function not viable: requires 3 arguments, but 2 were provided7:
999 error ../node_modules/nan/nan.h:1543
999 error :28: error: no matching member function for call to 'Set'
999 error   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
999 error                                     ^
999 error     New(persistentHandle)->Set(index, value);
999 error     ~~~~~~~~~~~~~~~~~~~~~~~^~~
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:3670:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
999 error   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
999 error                                     ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:3673:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
999 error   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
999 error                                     ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error ../node_modules/nan/nan.h:1549:32: error: no matching member function for call to 'Get'
999 error         New(persistentHandle)->Get(New(key).ToLocalChecked()));
999 error         ~~~~~~~~~~~~~~~~~~~~~~~^~~
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:3717:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
999 error   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,In file included from ../src/libxmljs.cc:
999 error                                           ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:3720:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
999 error 7:
999 error In file included from ../src/libxmljs.h:7:
999 error ../node_modules/nan/nan.h:1549:32: error: no matching member function for call to 'Get'
999 error   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
999 error                                           ^
999 error         New(persistentHandle)->Get(New(key).ToLocalChecked()));
999 error         ~~~~~~~~~~~~~~~~~~~~~~~^~~
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:3717:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
999 error   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
999 error                                           ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:3720:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
999 error   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
999 error                                           ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error ../node_modules/nan/nan.h:1555:48: error: no matching member function for call to 'Get'
999 error In file included from ../src/libxmljs.cc:    return scope.Escape(New(persistentHandle)->Get(key));
999 error                         ~~~~~~~~~~~~~~~~~~~~~~~^~~
999 error 7:
999 error In file included from ../src/libxmljs.h/Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h::7:
999 error ../node_modules/nan/nan.h3717::431555:: 48: error: note: no matching member function for call to 'Get'
999 error candidate function not viable: requires 2 arguments, but 1 was provided
999 error     return scope.Escape(New(persistentHandle)->Get(key));
999 error                         ~~~~~~~~~~~~~~~~~~~~~~~^~~
999 error   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
999 error                                           ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:3720:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
999 error :3717:43                                          ^
999 error : note: candidate function not viable: requires 2 arguments, but 1 was provided
999 error   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
999 error                                           ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:3720:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
999 error   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
999 error                                           ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error ../node_modules/nan/nan.h:1560:48: error: no matching member function for call to 'Get'
999 error     return scope.Escape(New(persistentHandle)->Get(index));
999 error                         ~~~~~~~~~~~~~~~~~~~~~~~^~~
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:3717:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
999 error   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
999 error                                           ^
999 error In file included from ../src/libxmljs.cc:/Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:3720:437:
999 error In file included from : ../src/libxmljs.h:7note: :
999 error candidate function not viable: requires 2 arguments, but 1 was provided
999 error ../node_modules/nan/nan.h:1560:48: error: no matching member function for call to 'Get'
999 error   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
999 error                                           ^
999 error     return scope.Escape(New(persistentHandle)->Get(index));
999 error                         ~~~~~~~~~~~~~~~~~~~~~~~^~~
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:3717:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
999 error   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
999 error                                           ^
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:3720:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
999 error   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
999 error                                           ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error In file included from ../node_modules/nan/nan.h:2220:
999 error ../node_modules/nan/nan_object_wrap.h:24:25: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object>'
999 error     assert(persistent().IsNearDeath());
999 error            ~~~~~~~~~~~~ ^
999 error /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error In file included from ../node_modules/nan/nan.h:2220:
999 error ../node_modules/nan/nan_object_wrap.h:    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
999 error                         ^
999 error 24:25: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object>'
999 error     assert(persistent().IsNearDeath());
999 error            ~~~~~~~~~~~~ ^
999 error /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'
999 error     (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
999 error                         ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error In file included from ../node_modules/nan/nan.h:2220:
999 error ../node_modules/nan/nan_object_wrap.h:67:18: error: no member named 'MarkIndependent' in 'Nan::Persistent<v8::Object>'
999 error     persistent().MarkIndependent();
999 error     ~~~~~~~~~~~~ ^
999 error In file included from ../src/libxmljs.cc:7:
999 error In file included from ../src/libxmljs.h:7:
999 error In file included from ../node_modules/nan/nan.h:2220:
999 error ../node_modules/nan/nan_object_wrap.h:67:18: error: no member named 'MarkIndependent' in 'Nan::Persistent<v8::Object>'
999 error     persistent().MarkIndependent();
999 error     ~~~~~~~~~~~~ ^
999 error ../node_modules/nan/nan_object_wrap.h:124:26: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object>'
999 error     assert(wrap->handle_.IsNearDeath());
999 error            ~~~~~~~~~~~~~ ^
999 error /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'
999 error     (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
999 error                         ^
999 error ../node_modules/nan/nan_object_wrap.h:124:26: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object>'
999 error     assert(wrap->handle_.IsNearDeath());
999 error            ~~~~~~~~~~~~~ ^
999 error /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'
999 error     (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
999 error                         ^
999 error In file included from ../src/libxmljs.cc:7In file included from ../src/libxmljs.cc:7:
999 error In file included from :
999 error In file included from ../src/libxmljs.h../src/libxmljs.h::7:
999 error 7:
999 error In file included from ../node_modules/nan/nan.h:In file included from ../node_modules/nan/nan.h:2311:
999 error 2311:
999 error ../node_modules/nan/nan_typedarray_contents.h:../node_modules/nan/nan_typedarray_contents.h34::3443::43 warning: warning: : 'GetContents' is deprecated: Use GetBackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations]
999 error 'GetContents' is deprecated: Use GetBackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations]
999 error       data   = static_cast<char*>(buffer->GetContents().Data()) + byte_offset;
999 error                                           ^
999 error       data   = static_cast<char*>(buffer->GetContents().Data()) + byte_offset;
999 error /Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h:                                          ^
999 error 5272:/Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8.h3:5272: note:3: note: 'GetContents' has been explicitly marked deprecated here
999 error : 'GetContents' has been explicitly marked deprecated here
999 error   V8_DEPRECATE_SOON("Use GetBackingStore. See http://crbug.com/v8/9908.")
999 error   ^
999 error   V8_DEPRECATE_SOON("Use GetBackingStore. See http://crbug.com/v8/9908.")
999 error   ^/Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8config.h:
999 error 402:/Users/misha/Library/Caches/node-gyp/14.15.3/include/node/v8config.h:39: 402:note39: :expanded from macro 'V8_DEPRECATE_SOON'
999 error  note: expanded from macro 'V8_DEPRECATE_SOON'
999 error # define V8_DEPRECATE_SOON(message) [[deprecated(message)]]
999 error                                       ^
999 error # define V8_DEPRECATE_SOON(message) [[deprecated(message)]]
999 error                                       ^
999 error In file included from ../src/libxmljs.cc:8:
999 error ../src/xml_document.h:23:32: error: no template named 'Handle' in namespace 'v8'
999 error     static void Initialize(v8::Handle<v8::Object> target);
999 error                            ~~~~^
999 error In file included from ../src/libxmljs.cc:8:
999 error ../src/xml_document.h:23:32: error: no template named 'Handle' in namespace 'v8'
999 error     static void Initialize(v8::Handle<v8::Object> target);
999 error                            ~~~~^
999 error In file included from ../src/libxmljs.cc:9:
999 error ../src/xml_node.h:32:32: error: no template named 'Handle' in namespace 'v8'
999 error     static void Initialize(v8::Handle<v8::Object> target);
999 error                            ~~~~^
999 error In file included from ../src/libxmljs.cc:9:
999 error ../src/xml_node.h:32:32: error: no template named 'Handle' in namespace 'v8'
999 error     static void Initialize(v8::Handle<v8::Object> target);
999 error                            ~~~~^
999 error In file included from ../src/libxmljs.cc:10:
999 error ../src/xml_sax_parser.h:16:18: error: no template named 'Handle' in namespace 'v8'
999 error   Initialize(v8::Handle<v8::Object> target);
999 error              ~~~~^
999 error In file included from ../src/libxmljs.cc:10:
999 error ../src/xml_sax_parser.h:16:18: error: no template named 'Handle' in namespace 'v8'
999 error   Initialize(v8::Handle<v8::Object> target);
999 error              ~~~~^
999 error fatal error: too many errors emitted, stopping now [-ferror-limit=]
999 error fatal error: too many errors emitted, stopping now [-ferror-limit=]
999 error 5 warnings and 20 errors generated.
999 error 5 warnings and 20 errors generated.
999 error make: *** [Release/obj.target/xmljs/src/libxmljs.o] Error 1
999 error make: *** [Release/obj.target/xmljs/src/libxmljs.o] Error 1
999 error gypgyp ERR! build error
999 error  ERR! build error
999 error gyp ERR! stack Error: `make` failed with exit code: 2
999 error gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
999 error gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
999 error gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
999 error gyp ERR! stackgyp Error: `make` failed with exit code: 2
999 error  gypERR!  ERR!System  Darwin 20.4.0
999 error stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
999 error gyp gypERR! ERR!  commandstack "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--loglevel=http" "--module=/Users/misha/stardewplanner/node_modules/libxmljs/build/Release/xmljs.node" "--module_name=xmljs" "--module_path=/Users/misha/stardewplanner/node_modules/libxmljs/build/Release"
999 error      at ChildProcess.emit (events.js:315:20)
999 error gypgyp  ERR!ERR!  stackcwd     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
999 error  /Users/misha/stardewplanner/node_modules/libxmljs
999 error gyp ERR! node -v v14.15.3
999 error gyp ERR! node-gyp -v v7.1.2
999 error gyp ERR! not ok
999 error gyp ERR! System Darwin 20.4.0
999 error gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--loglevel=http" "--module=/Users/misha/stardewplanner/node_modules/libxmljs/build/Release/xmljs.node" "--module_name=xmljs" "--module_path=/Users/misha/stardewplanner/node_modules/libxmljs/build/Release"
999 error gyp ERR! cwd /Users/misha/stardewplanner/node_modules/libxmljs
999 error gyp ERR! node -v v14.15.3
999 error gyp ERR! node-gyp -v v7.1.2
999 error gyp ERR! not ok
999 error node-pre-gyp ERR! build error
999 error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --loglevel=http --module=/Users/misha/stardewplanner/node_modules/libxmljs/build/Release/xmljs.node --module_name=xmljs --module_path=/Users/misha/stardewplanner/node_modules/libxmljs/build/Release' (1)
999 error node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/misha/stardewplanner/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
999 error node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
999 error node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1048:16)
999 error node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
999 error node-pre-gyp ERR! System Darwin 20.4.0
999 error node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/misha/stardewplanner/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--loglevel" "http"
999 error node-pre-gyp ERR! cwd /Users/misha/stardewplanner/node_modules/libxmljs
999 error node-pre-gyp ERR! node -v v14.15.3
999 error node-pre-gyp ERR! node-pre-gyp -v v0.6.38
999 error node-pre-gyp ERR! not ok
1000 verbose exit 1
dj-bauer commented 2 years ago

I am having the same issue on Arch Linux