Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Failed #2

Open
RIVINS-Bravo-01 opened this issue Jan 10, 2022 · 0 comments
Open

Installation Failed #2

RIVINS-Bravo-01 opened this issue Jan 10, 2022 · 0 comments

Comments

@RIVINS-Bravo-01
Copy link

I assume you're code has to be update for the latest version of homebridge see log.

Goodluck

`root@homebridge-vm:/homebridge# npm install -g homebridge-mediabox-xl

[email protected] install /usr/local/lib/node_modules/homebridge-mediabox-xl/node_modules/sleep
node-gyp rebuild

make: Entering directory '/usr/local/lib/node_modules/homebridge-mediabox-xl/node_modules/sleep/build'
CXX(target) Release/obj.target/node_sleep/sleep.o
../sleep.cc:6:11: error: 'v8::Handle' has not been declared
using v8::Handle;
^~~~~~
../sleep.cc: In function 'void init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)':
../sleep.cc:103:53: error: no matching function for call to 'v8::FunctionTemplate::GetFunction()'
Nan::New(MSleep)->GetFunction());
^
In file included from /root/.cache/node-gyp/14.17.4/include/node/node.h:67:0,
from ../../nan/nan.h:58,
from ../sleep.cc:2:
/root/.cache/node-gyp/14.17.4/include/node/v8.h:6482:46: note: candidate: v8::MaybeLocalv8::Function v8::FunctionTemplate::GetFunction(v8::Localv8::Context)
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^~~~~~~~~~~
/root/.cache/node-gyp/14.17.4/include/node/v8.h:6482:46: note: candidate expects 1 argument, 0 provided
../sleep.cc:105:54: error: no matching function for call to 'v8::FunctionTemplate::GetFunction()'
Nan::New(MUSleep)->GetFunction());
^
In file included from /root/.cache/node-gyp/14.17.4/include/node/node.h:67:0,
from ../../nan/nan.h:58,
from ../sleep.cc:2:
/root/.cache/node-gyp/14.17.4/include/node/v8.h:6482:46: note: candidate: v8::MaybeLocalv8::Function v8::FunctionTemplate::GetFunction(v8::Localv8::Context)
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^~~~~~~~~~~
/root/.cache/node-gyp/14.17.4/include/node/v8.h:6482:46: note: candidate expects 1 argument, 0 provided
node_sleep.target.mk:111: recipe for target 'Release/obj.target/node_sleep/sleep.o' failed
make: *** [Release/obj.target/node_sleep/sleep.o] Error 1
make: Leaving directory '/usr/local/lib/node_modules/homebridge-mediabox-xl/node_modules/sleep/build'
gyp ERR! build error
gyp ERR! stack Error: make 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 (events.js:400:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Linux 4.19.103-boot2docker
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/lib/node_modules/homebridge-mediabox-xl/node_modules/sleep
gyp ERR! node -v v14.17.4
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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/2022-01-10T23_27_05_678Z-debug.log`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant