Hi!
Im trying to install mineos in a truenas jail, everything goes fine until i execute ‘npm install’:
root@mineos2:/usr/local/games/minecraft # npm install
> userid@0.3.1 install /usr/local/games/minecraft/node_modules/userid
> node-gyp rebuild
gmake: Entering directory '/usr/local/games/minecraft/node_modules/userid/build'
CXX(target) Release/obj.target/userid/src/userid.o
In file included from ../src/userid.cc:11:
In file included from ../../nan/nan.h:2884:
../../nan/nan_typedarray_contents.h:34:43: warning: 'GetContents' is deprecated: Use GetBackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations]
data = static_cast<char*>(buffer->GetContents().Data()) + byte_offset;
^
/root/.cache/node-gyp/15.14.0/include/node/v8.h:5317:3: note: 'GetContents' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use GetBackingStore. See http://crbug.com/v8/9908.")
^
/root/.cache/node-gyp/15.14.0/include/node/v8config.h:402:39: note: expanded from macro 'V8_DEPRECATE_SOON'
# define V8_DEPRECATE_SOON(message) [[deprecated(message)]]
^
../src/userid.cc:47:42: error: too few arguments to function call, single argument 'context' was not specified
group = getgrgid(info[0]->Int32Value());
~~~~~~~~~~~~~~~~~~~ ^
/root/.cache/node-gyp/15.14.0/include/node/v8.h:2915:3: note: 'Int32Value' declared here
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^
/root/.cache/node-gyp/15.14.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
../src/userid.cc:75:47: error: too few arguments to function call, single argument 'context' was not specified
String::Utf8Value utfname(info[0]->ToString());
~~~~~~~~~~~~~~~~~ ^
/root/.cache/node-gyp/15.14.0/include/node/v8.h:2856:3: note: 'ToString' declared here
V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
^
/root/.cache/node-gyp/15.14.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
../src/userid.cc:118:49: error: too few arguments to function call, single argument 'context' was not specified
String::Utf8Value utfname(info[0]->ToString());
~~~~~~~~~~~~~~~~~ ^
/root/.cache/node-gyp/15.14.0/include/node/v8.h:2856:3: note: 'ToString' declared here
V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
^
/root/.cache/node-gyp/15.14.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
../src/userid.cc:137:41: error: too few arguments to function call, single argument 'context' was not specified
user = getpwuid(info[0]->Int32Value());
~~~~~~~~~~~~~~~~~~~ ^
/root/.cache/node-gyp/15.14.0/include/node/v8.h:2915:3: note: 'Int32Value' declared here
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^
/root/.cache/node-gyp/15.14.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
../src/userid.cc:155:49: error: too few arguments to function call, single argument 'context' was not specified
String::Utf8Value utfname(info[0]->ToString());
~~~~~~~~~~~~~~~~~ ^
/root/.cache/node-gyp/15.14.0/include/node/v8.h:2856:3: note: 'ToString' declared here
V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
^
/root/.cache/node-gyp/15.14.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
1 warning and 5 errors generated.
gmake: *** [userid.target.mk:107: Release/obj.target/userid/src/userid.o] Error 1
gmake: Leaving directory '/usr/local/games/minecraft/node_modules/userid/build'
gyp ERR! build error
gyp ERR! stack Error: `gmake` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (node:events:369:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System FreeBSD 12.2-RELEASE-p6
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/games/minecraft/node_modules/userid
gyp ERR! node -v v15.14.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! userid@0.3.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the userid@0.3.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-04-21T18_46_09_591Z-debug.log
Dont really understand what the root cause of the issue is. Did anyone else ran into this?
Thanks in advance!