You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Followed the directions to install g++ 4.8 as well as wiringPi, but still having issues installing this node component.
I'm not competent enough in this type of software to understand what's going on, although nothing jumps out at me. I'd guess it's a node-gyp issue, which another user mentioned, but I don't understand how to implement his proposed solution
pi@raspberrypi:~/Source/node-hx711 $ npm install hx711 --save
> [email protected] install /home/pi/Source/node-hx711/node_modules/hx711
> node-gyp rebuild
make: Entering directory '/home/pi/Source/node-hx711/node_modules/hx711/build'
CXX(target) Release/obj.target/hx711/binding.o
../binding.cpp: In static member function ‘static void HX711Wrapper::New(const v8::FunctionCallbackInfo<v8::Value>&)’:
../binding.cpp:159:61: error: no matching function for call to ‘v8::Function::NewInstance(const int&, v8::Local<v8::Value> [2])’
args.GetReturnValue().Set(cons->NewInstance(argc, argv));
^
../binding.cpp:159:61: note: candidates are:
In file included from /home/pi/.node-gyp/10.9.0/include/node/node.h:63:0,
from ../binding.h:1,
from ../binding.cpp:1:
/home/pi/.node-gyp/10.9.0/include/node/v8.h:3976:44: note: v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>, int, v8::Local<v8::Value>*) const
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^
/home/pi/.node-gyp/10.9.0/include/node/v8.h:3976:44: note: candidate expects 3 arguments, 2 provided
/home/pi/.node-gyp/10.9.0/include/node/v8.h:3979:44: note: v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^
/home/pi/.node-gyp/10.9.0/include/node/v8.h:3979:44: note: candidate expects 1 argument, 2 provided
hx711.target.mk:98: recipe for target 'Release/obj.target/hx711/binding.o' failed
make: *** [Release/obj.target/hx711/binding.o] Error 1
make: Leaving directory '/home/pi/Source/node-hx711/node_modules/hx711/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:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:239:12)
gyp ERR! System Linux 4.14.50+
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 /home/pi/Source/node-hx711/node_modules/hx711
gyp ERR! node -v v10.9.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
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! /home/pi/.npm/_logs/2018-08-29T19_15_53_463Z-debug.log
The text was updated successfully, but these errors were encountered:
Followed the directions to install g++ 4.8 as well as wiringPi, but still having issues installing this node component.
I'm not competent enough in this type of software to understand what's going on, although nothing jumps out at me. I'd guess it's a
node-gyp
issue, which another user mentioned, but I don't understand how to implement his proposed solutionThe text was updated successfully, but these errors were encountered: