-
Notifications
You must be signed in to change notification settings - Fork 2
Description
JACoB here...
I can now access this repo, but ran into trouble during my installation checks.
I tried to verify that I could build this repo in preparation for writing code.
Here is some additional info on the error(s) I saw:
Command failed: npm install
npm ERR! code 1
npm ERR! path /mnt/tmp/tmp-106-066oyVGyAshJ/node_modules/reboot
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! make: Entering directory '/mnt/tmp/tmp-106-066oyVGyAshJ/node_modules/reboot/build'
npm ERR! CXX(target) Release/obj.target/reboot_bindings/src/reboot.o
npm ERR! make: Leaving directory '/mnt/tmp/tmp-106-066oyVGyAshJ/node_modules/reboot/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@10.0.1
npm ERR! gyp info using node@20.11.0 | linux | x64
npm ERR! gyp info find Python using Python version 3.11.2 found at "/usr/bin/python"
npm ERR! gyp info spawn /usr/bin/python
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/opt/render/project/nodes/node-20.11.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 '/mnt/tmp/tmp-106-066oyVGyAshJ/node_modules/reboot/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/opt/render/project/nodes/node-20.11.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/opt/render/.cache/node-gyp/20.11.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=/opt/render/.cache/node-gyp/20.11.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/opt/render/project/nodes/node-20.11.0/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/opt/render/.cache/node-gyp/20.11.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/mnt/tmp/tmp-106-066oyVGyAshJ/node_modules/reboot',
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! ../src/reboot.cc:12:40: error: ‘Arguments’ does not name a type
npm ERR! 12 | Handle _rebootImmediately(const Arguments& args) {
npm ERR! | ^~~~~~~~~
npm ERR! ../src/reboot.cc: In function ‘v8::Handlev8::Value _rebootImmediately(const int&)’:
npm ERR! ../src/reboot.cc:19:25: error: too few arguments to function ‘v8::Localv8::Primitive v8::Undefined(Isolate*)’
npm ERR! 19 | return Undefined();
npm ERR! | ~~~~~~~~~^~
npm ERR! In file included from /opt/render/.cache/node-gyp/20.11.0/include/node/v8-array-buffer.h:12,
npm ERR! from /opt/render/.cache/node-gyp/20.11.0/include/node/v8.h:24,
npm ERR! from /opt/render/.cache/node-gyp/20.11.0/include/node/node.h:73,
npm ERR! from ../src/reboot.cc:1:
npm ERR! /opt/render/.cache/node-gyp/20.11.0/include/node/v8-local-handle.h:313:27: note: declared here
npm ERR! 313 | friend Local Undefined(Isolate* isolate);
npm ERR! | ^~~~~~~~~
npm ERR! ../src/reboot.cc: At global scope:
npm ERR! ../src/reboot.cc:22:29: error: ‘Arguments’ does not name a type
npm ERR! 22 | Handle _reboot(const Arguments &args) {
npm ERR! | ^~~~~~~~~
npm ERR! ../src/reboot.cc: In function ‘v8::Handlev8::Value _reboot(const int&)’:
npm ERR! ../src/reboot.cc:31:25: error: too few arguments to function ‘v8::Localv8::Primitive v8::Undefined(Isolate*)’
npm ERR! 31 | return Undefined();
npm ERR! | ~~~~~~~~~^~
npm ERR! /opt/render/.cache/node-gyp/20.11.0/include/node/v8-local-handle.h:313:27: note: declared here
npm ERR! 313 | friend Local Undefined(Isolate* isolate);
npm ERR! | ^~~~~~~~~
npm ERR! ../src/reboot.cc: In function ‘void init(v8::Handlev8::Object)’:
npm ERR! ../src/reboot.cc:36:43: error: invalid conversion from ‘v8::Handlev8::Value ()(const int&)’ {aka ‘v8::Localv8::Value ()(const int&)’} to ‘v8::FunctionCallback’ {aka ‘void ()(const v8::FunctionCallbackInfov8::Value&)’} [-fpermissive]
npm ERR! 36 | NODE_SET_METHOD(target, "reboot", _reboot);
npm ERR! | ^~~~~~~
npm ERR! | |
npm ERR! | v8::Handlev8::Value ()(const int&) {aka v8::Localv8::Value ()(const int&)}
npm ERR! /opt/render/.cache/node-gyp/20.11.0/include/node/node.h:1022:50: note: initializing argument 3 of ‘void node::NODE_SET_METHOD(v8::Localv8::Object, const char, v8::FunctionCallback)’
npm ERR! 1022 | v8::FunctionCallback callback) {
npm ERR! | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
npm ERR! ../src/reboot.cc:37:54: error: invalid conversion from ‘v8::Handlev8::Value ()(const int&)’ {aka ‘v8::Localv8::Value ()(const int&)’} to ‘v8::FunctionCallback’ {aka ‘void ()(const v8::FunctionCallbackInfov8::Value&)’} [-fpermissive]
npm ERR! 37 | NODE_SET_METHOD(target, "rebootImmediately", _rebootImmediately);
npm ERR! | ^~~~~~~~~~~~~~~~~~
npm ERR! | |
npm ERR! | v8::Handlev8::Value ()(const int&) {aka v8::Localv8::Value ()(const int&)}
npm ERR! /opt/render/.cache/node-gyp/20.11.0/include/node/node.h:1022:50: note: initializing argument 3 of ‘void node::NODE_SET_METHOD(v8::Localv8::Object, const char, v8::FunctionCallback)’
npm ERR! 1022 | v8::FunctionCallback callback) {
npm ERR! | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
npm ERR! ../src/reboot.cc: At global scope:
npm ERR! /opt/render/.cache/node-gyp/20.11.0/include/node/node.h:1172:7: warning: cast between incompatible function types from ‘void ()(v8::Handlev8::Object)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
npm ERR! 1172 | (node::addon_register_func) (regfunc),
npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /opt/render/.cache/node-gyp/20.11.0/include/node/node.h:1206:3: note: in expansion of macro ‘NODE_MODULE_X’
npm ERR! 1206 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
npm ERR! | ^~~~~~~~~~~~~
npm ERR! ../src/reboot.cc:40:1: note: in expansion of macro ‘NODE_MODULE’
npm ERR! 40 | NODE_MODULE(reboot_bindings, init);
npm ERR! | ^~~~~~~~~~~
npm ERR! make: *** [reboot_bindings.target.mk:106: Release/obj.target/reboot_bindings/src/reboot.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. (/opt/render/project/nodes/node-20.11.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm ERR! gyp ERR! System Linux 6.8.0-1023-aws
npm ERR! gyp ERR! command "/opt/render/project/nodes/node-20.11.0/bin/node" "/opt/render/project/nodes/node-20.11.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /mnt/tmp/tmp-106-066oyVGyAshJ/node_modules/reboot
npm ERR! gyp ERR! node -v v20.11.0
npm ERR! gyp ERR! node-gyp -v v10.0.1
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in: /opt/render/.cache/_logs/2025-05-14T18_58_31_684Z-debug-0.log
You may need to add or edit a jacob.json file in the root of your repository to help me better understand how to build your project.
Please visit the JACoB documentation for more information on how to resolve this issue.