Open Kepete opened 6 years ago
same for me
npm install node-wiring-pi
npm WARN deprecated mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
> node-wiring-pi@0.0.5 install /usr/local/lib/node_modules/node-wiring-pi
> /bin/bash ./install.sh
/usr/bin/dpkg-query
./install.sh: Zeile 6: install.log: Keine Berechtigung
Checking for wiringpi: install ok installed
Building node-wiring-pi ...
tee: ./install.log: Permission denied
tee: ./install.log: Permission denied
gyp WARN EACCES current user ("pi") does not have permission to access the dev dir "/root/.cache/node-gyp/13.12.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/node-wiring-pi/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/node-wiring-pi/.node-gyp'
gyp ERR! System Linux 4.19.97-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /usr/local/lib/node_modules/node-wiring-pi
gyp ERR! node -v v13.12.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-wiring-pi@0.0.5 install: `/bin/bash ./install.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-wiring-pi@0.0.5 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/2020-03-31T19_44_20_101Z-debug.log
Won't work for me too.
root@raspybuzzer:~/raspiBuzzer# npm rebuild
> epoll@4.0.0 install /root/raspiBuzzer/node_modules/epoll
> node-gyp rebuild
make: Entering directory '/root/raspiBuzzer/node_modules/epoll/build'
CXX(target) Release/obj.target/epoll/src/epoll.o
SOLINK_MODULE(target) Release/obj.target/epoll.node
COPY Release/epoll.node
make: Leaving directory '/root/raspiBuzzer/node_modules/epoll/build'
> node-wiring-pi@0.0.5 install /root/raspiBuzzer/node_modules/node-wiring-pi
> /bin/bash ./install.sh
/usr/bin/dpkg-query
Checking for wiringpi: install ok installed
Building node-wiring-pi ...
make: Entering directory '/root/raspiBuzzer/node_modules/node-wiring-pi/build'
CXX(target) Release/obj.target/nodeWiringPi/src/addon.o
CXX(target) Release/obj.target/nodeWiringPi/src/wiringPi.o
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/wiringPi.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE nodewpi::pinModeAlt(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:125:13: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int pin = GET_ARGUMENT_AS_INT32(0);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:126:14: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int mode = GET_ARGUMENT_AS_INT32(1);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/wiringPi.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE nodewpi::pinMode(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:157:13: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int pin = GET_ARGUMENT_AS_INT32(0);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:158:14: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int mode = GET_ARGUMENT_AS_INT32(1);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/wiringPi.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE nodewpi::pullUpDnControl(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:189:13: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int pin = GET_ARGUMENT_AS_INT32(0);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:190:13: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int pud = GET_ARGUMENT_AS_INT32(1);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/wiringPi.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE nodewpi::digitalRead(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:216:13: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int pin = GET_ARGUMENT_AS_INT32(0);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/wiringPi.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE nodewpi::digitalWrite(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:243:13: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int pin = GET_ARGUMENT_AS_INT32(0);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:244:15: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int state = GET_ARGUMENT_AS_INT32(1);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/wiringPi.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE nodewpi::pwmWrite(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:275:13: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int pin = GET_ARGUMENT_AS_INT32(0);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:276:15: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int value = GET_ARGUMENT_AS_INT32(1);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/wiringPi.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE nodewpi::analogRead(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:292:13: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int pin = GET_ARGUMENT_AS_INT32(0);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/wiringPi.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE nodewpi::analogWrite(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:313:13: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int pin = GET_ARGUMENT_AS_INT32(0);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:314:15: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int value = GET_ARGUMENT_AS_INT32(1);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/wiringPi.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE nodewpi::delay(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:330:12: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int ms = GET_ARGUMENT_AS_INT32(0);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/wiringPi.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE nodewpi::delayMicroseconds(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:346:12: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int us = GET_ARGUMENT_AS_INT32(0);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
../src/wiringPi.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE nodewpi::piBoardId(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/wiringPi.cc:399:43: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
obj->Set(STRING("model"), INT32(model));
^
In file included from /root/.cache/node-gyp/12.20.1/include/node/v8-internal.h:14,
from /root/.cache/node-gyp/12.20.1/include/node/v8.h:27,
from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:3499:22: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^~~
/root/.cache/node-gyp/12.20.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/wiringPi.cc:400:39: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
obj->Set(STRING("rev"), INT32(rev));
^
In file included from /root/.cache/node-gyp/12.20.1/include/node/v8-internal.h:14,
from /root/.cache/node-gyp/12.20.1/include/node/v8.h:27,
from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:3499:22: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^~~
/root/.cache/node-gyp/12.20.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/wiringPi.cc:401:39: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
obj->Set(STRING("mem"), INT32(mem));
^
In file included from /root/.cache/node-gyp/12.20.1/include/node/v8-internal.h:14,
from /root/.cache/node-gyp/12.20.1/include/node/v8.h:27,
from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:3499:22: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^~~
/root/.cache/node-gyp/12.20.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/wiringPi.cc:402:45: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
obj->Set(STRING("marker"), INT32(marker));
^
In file included from /root/.cache/node-gyp/12.20.1/include/node/v8-internal.h:14,
from /root/.cache/node-gyp/12.20.1/include/node/v8.h:27,
from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:3499:22: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^~~
/root/.cache/node-gyp/12.20.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/wiringPi.cc:403:53: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
obj->Set(STRING("overvolted"), INT32(overvolted));
^
In file included from /root/.cache/node-gyp/12.20.1/include/node/v8-internal.h:14,
from /root/.cache/node-gyp/12.20.1/include/node/v8.h:27,
from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:3499:22: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^~~
/root/.cache/node-gyp/12.20.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/wiringPi.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE nodewpi::wpiPinToGpio(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:421:13: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int pin = GET_ARGUMENT_AS_INT32(0);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/wiringPi.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE nodewpi::physPinToGpio(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:439:13: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int pin = GET_ARGUMENT_AS_INT32(0);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/wiringPi.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE nodewpi::setPadDrive(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:461:15: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int group = GET_ARGUMENT_AS_INT32(0);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:462:15: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int value = GET_ARGUMENT_AS_INT32(1);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/wiringPi.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE nodewpi::getAlt(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:482:13: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int pin = GET_ARGUMENT_AS_INT32(0);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/wiringPi.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE nodewpi::pwmToneWrite(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:499:13: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int pin = GET_ARGUMENT_AS_INT32(0);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:500:19: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int frequency = GET_ARGUMENT_AS_INT32(1);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/wiringPi.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE nodewpi::digitalWriteByte(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:521:14: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int byte = GET_ARGUMENT_AS_INT32(0);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/wiringPi.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE nodewpi::pwmSetMode(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:541:14: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int mode = GET_ARGUMENT_AS_INT32(0);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/wiringPi.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE nodewpi::pwmSetRange(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Uint32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:144:38: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_UINT32(id) GET_ARGUMENT_AS_TYPE(id, Uint32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:567:24: note: in expansion of macro ‘GET_ARGUMENT_AS_UINT32’
unsigned int range = GET_ARGUMENT_AS_UINT32(0);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2707:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^~~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/wiringPi.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE nodewpi::pwmSetClock(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:587:17: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int divisor = GET_ARGUMENT_AS_INT32(0);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/wiringPi.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE nodewpi::gpioClockSet(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:607:13: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int pin = GET_ARGUMENT_AS_INT32(0);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/addon.h:141:57: error: no matching function for call to ‘v8::Value::Int32Value()’
#define GET_ARGUMENT_AS_TYPE(id, type) info[id]->type()
^
../src/addon.h:143:37: note: in expansion of macro ‘GET_ARGUMENT_AS_TYPE’
#define GET_ARGUMENT_AS_INT32(id) GET_ARGUMENT_AS_TYPE(id, Int32Value)
^~~~~~~~~~~~~~~~~~~~
../src/wiringPi.cc:608:19: note: in expansion of macro ‘GET_ARGUMENT_AS_INT32’
int frequency = GET_ARGUMENT_AS_INT32(1);
^~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/wiringPi.cc: In function ‘void nodewpi::init_wiringPi(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’:
../src/addon.h:88:66: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
arr->Set(i, Nan::New<String>(array[i]).ToLocalChecked()); \
^
../src/wiringPi.cc:718:3: note: in expansion of macro ‘EXPORT_CONSTANT_STRING_ARRAY’
EXPORT_CONSTANT_STRING_ARRAY(PI_MODEL_NAMES, piModelNames, 7);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/v8-internal.h:14,
from /root/.cache/node-gyp/12.20.1/include/node/v8.h:27,
from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:3508:22: note: declared here
bool Set(uint32_t index, Local<Value> value));
^~~
/root/.cache/node-gyp/12.20.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/addon.h:88:66: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
arr->Set(i, Nan::New<String>(array[i]).ToLocalChecked()); \
^
../src/wiringPi.cc:719:3: note: in expansion of macro ‘EXPORT_CONSTANT_STRING_ARRAY’
EXPORT_CONSTANT_STRING_ARRAY(PI_REVISION_NAMES, piRevisionNames, 5);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/v8-internal.h:14,
from /root/.cache/node-gyp/12.20.1/include/node/v8.h:27,
from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:3508:22: note: declared here
bool Set(uint32_t index, Local<Value> value));
^~~
/root/.cache/node-gyp/12.20.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
../src/addon.h:88:66: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
arr->Set(i, Nan::New<String>(array[i]).ToLocalChecked()); \
^
../src/wiringPi.cc:720:3: note: in expansion of macro ‘EXPORT_CONSTANT_STRING_ARRAY’
EXPORT_CONSTANT_STRING_ARRAY(PI_MAKER_NAMES, piMakerNames, 5);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/12.20.1/include/node/v8-internal.h:14,
from /root/.cache/node-gyp/12.20.1/include/node/v8.h:27,
from /root/.cache/node-gyp/12.20.1/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/addon.h:10,
from ../src/wiringPi.h:5,
from ../src/wiringPi.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:3508:22: note: declared here
bool Set(uint32_t index, Local<Value> value));
^~~
/root/.cache/node-gyp/12.20.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
make: *** [nodeWiringPi.target.mk:126: Release/obj.target/nodeWiringPi/src/wiringPi.o] Error 1
make: Leaving directory '/root/raspiBuzzer/node_modules/node-wiring-pi/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Linux 5.4.83-v7+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /root/raspiBuzzer/node_modules/node-wiring-pi
gyp ERR! node -v v12.20.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
> wiring-pi@2.2.1 install /root/raspiBuzzer/node_modules/wiring-pi
> /bin/bash ./install.sh
Cloning libWiringPi ... done.
patching file ./wiringpi/devLib/Makefile
Hunk #1 succeeded at 24 with fuzz 1 (offset -2 lines).
Hunk #2 succeeded at 32 with fuzz 2 (offset -2 lines).
patching file ./wiringpi/gpio/Makefile
Making libWiringPi ... done.
Making devLib ...done.
Unistalling gpio utility ... done.
Making gpio utility ... done.
Installing gpio utility ... done.
Making wiring-pi ... make: Entering directory '/root/raspiBuzzer/node_modules/wiring-pi/build'
CXX(target) Release/obj.target/wiringPi/src/addon.o
In file included from ../src/addon.cc:1:
../src/addon.h:12:28: error: ‘Handle’ is not a member of ‘v8’
bool HasInstance(v8::Handle<v8::Value> val);
^~~~~~
../src/addon.h:12:44: error: expected primary-expression before ‘>’ token
bool HasInstance(v8::Handle<v8::Value> val);
^
../src/addon.h:12:46: error: ‘val’ was not declared in this scope
bool HasInstance(v8::Handle<v8::Value> val);
^~~
../src/addon.h:13:28: error: redefinition of ‘bool node::Buffer::HasInstance’
bool HasInstance(v8::Handle<v8::Object> val);
^~~~~~
../src/addon.h:12:12: note: ‘bool node::Buffer::HasInstance’ previously defined here
bool HasInstance(v8::Handle<v8::Value> val);
^~~~~~~~~~~
../src/addon.h:13:28: error: ‘Handle’ is not a member of ‘v8’
bool HasInstance(v8::Handle<v8::Object> val);
^~~~~~
../src/addon.h:13:45: error: expected primary-expression before ‘>’ token
bool HasInstance(v8::Handle<v8::Object> val);
^
../src/addon.h:13:47: error: ‘val’ was not declared in this scope
bool HasInstance(v8::Handle<v8::Object> val);
^~~
../src/addon.h:14:22: error: ‘Handle’ is not a member of ‘v8’
char* Data(v8::Handle<v8::Value> val);
^~~~~~
../src/addon.h:14:38: error: expected primary-expression before ‘>’ token
char* Data(v8::Handle<v8::Value> val);
^
../src/addon.h:14:40: error: ‘val’ was not declared in this scope
char* Data(v8::Handle<v8::Value> val);
^~~
../src/addon.h:15:22: error: redefinition of ‘char* node::Buffer::Data’
char* Data(v8::Handle<v8::Object> val);
^~~~~~
../src/addon.h:14:13: note: ‘char* node::Buffer::Data’ previously defined here
char* Data(v8::Handle<v8::Value> val);
^~~~
../src/addon.h:15:22: error: ‘Handle’ is not a member of ‘v8’
char* Data(v8::Handle<v8::Object> val);
^~~~~~
../src/addon.h:15:39: error: expected primary-expression before ‘>’ token
char* Data(v8::Handle<v8::Object> val);
^
../src/addon.h:15:41: error: ‘val’ was not declared in this scope
char* Data(v8::Handle<v8::Object> val);
^~~
../src/addon.h:16:25: error: ‘Handle’ is not a member of ‘v8’
size_t Length(v8::Handle<v8::Value> val);
^~~~~~
../src/addon.h:16:41: error: expected primary-expression before ‘>’ token
size_t Length(v8::Handle<v8::Value> val);
^
../src/addon.h:16:43: error: ‘val’ was not declared in this scope
size_t Length(v8::Handle<v8::Value> val);
^~~
../src/addon.h:17:25: error: redefinition of ‘size_t node::Buffer::Length’
size_t Length(v8::Handle<v8::Object> val);
^~~~~~
../src/addon.h:16:14: note: ‘size_t node::Buffer::Length’ previously defined here
size_t Length(v8::Handle<v8::Value> val);
^~~~~~
../src/addon.h:17:25: error: ‘Handle’ is not a member of ‘v8’
size_t Length(v8::Handle<v8::Object> val);
^~~~~~
../src/addon.h:17:42: error: expected primary-expression before ‘>’ token
size_t Length(v8::Handle<v8::Object> val);
^
../src/addon.h:17:44: error: ‘val’ was not declared in this scope
size_t Length(v8::Handle<v8::Object> val);
^~~
../src/addon.cc: In function ‘void throw_error(v8::Isolate*, const char*, ...)’:
../src/addon.cc:35:89: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
isolate->ThrowException(v8::Exception::Error(v8::String::NewFromUtf8(isolate, buffer)));
^
In file included from /root/.cache/node-gyp/12.20.1/include/node/v8-internal.h:14,
from /root/.cache/node-gyp/12.20.1/include/node/v8.h:27,
from ../src/addon.h:4,
from ../src/addon.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:3032:21: note: declared here
Local<String> NewFromUtf8(Isolate* isolate, const char* data,
^~~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/addon.cc:35:89: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
isolate->ThrowException(v8::Exception::Error(v8::String::NewFromUtf8(isolate, buffer)));
^
In file included from /root/.cache/node-gyp/12.20.1/include/node/v8-internal.h:14,
from /root/.cache/node-gyp/12.20.1/include/node/v8.h:27,
from ../src/addon.h:4,
from ../src/addon.cc:1:
/root/.cache/node-gyp/12.20.1/include/node/v8.h:3032:21: note: declared here
Local<String> NewFromUtf8(Isolate* isolate, const char* data,
^~~~~~~~~~~
/root/.cache/node-gyp/12.20.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
make: *** [wiringPi.target.mk:152: Release/obj.target/wiringPi/src/addon.o] Error 1
make: Leaving directory '/root/raspiBuzzer/node_modules/wiring-pi/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Linux 5.4.83-v7+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/raspiBuzzer/node_modules/wiring-pi
gyp ERR! node -v v12.20.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
done.
Enjoy !
root@raspybuzzer:~/raspiBuzzer# node app.js
/root/raspiBuzzer/node_modules/bindings/bindings.js:135
throw err;
^
Error: Could not locate the bindings file. Tried:
→ /root/raspiBuzzer/node_modules/node-wiring-pi/build/nodeWiringPi.node
→ /root/raspiBuzzer/node_modules/node-wiring-pi/build/Debug/nodeWiringPi.node
→ /root/raspiBuzzer/node_modules/node-wiring-pi/build/Release/nodeWiringPi.node
→ /root/raspiBuzzer/node_modules/node-wiring-pi/out/Debug/nodeWiringPi.node
→ /root/raspiBuzzer/node_modules/node-wiring-pi/Debug/nodeWiringPi.node
→ /root/raspiBuzzer/node_modules/node-wiring-pi/out/Release/nodeWiringPi.node
→ /root/raspiBuzzer/node_modules/node-wiring-pi/Release/nodeWiringPi.node
→ /root/raspiBuzzer/node_modules/node-wiring-pi/build/default/nodeWiringPi.node
→ /root/raspiBuzzer/node_modules/node-wiring-pi/compiled/12.20.1/linux/arm/nodeWiringPi.node
→ /root/raspiBuzzer/node_modules/node-wiring-pi/addon-build/release/install-root/nodeWiringPi.node
→ /root/raspiBuzzer/node_modules/node-wiring-pi/addon-build/debug/install-root/nodeWiringPi.node
→ /root/raspiBuzzer/node_modules/node-wiring-pi/addon-build/default/install-root/nodeWiringPi.node
→ /root/raspiBuzzer/node_modules/node-wiring-pi/lib/binding/node-v72-linux-arm/nodeWiringPi.node
at bindings (/root/raspiBuzzer/node_modules/bindings/bindings.js:126:9)
at Object.<anonymous> (/root/raspiBuzzer/node_modules/node-wiring-pi/index.js:1:37)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/root/raspiBuzzer/node_modules/raspberrypi-tm1637/TM1637.js:1:13)
at Module._compile (internal/modules/cjs/loader.js:999:30) {
tries: [
'/root/raspiBuzzer/node_modules/node-wiring-pi/build/nodeWiringPi.node',
'/root/raspiBuzzer/node_modules/node-wiring-pi/build/Debug/nodeWiringPi.node',
'/root/raspiBuzzer/node_modules/node-wiring-pi/build/Release/nodeWiringPi.node',
'/root/raspiBuzzer/node_modules/node-wiring-pi/out/Debug/nodeWiringPi.node',
'/root/raspiBuzzer/node_modules/node-wiring-pi/Debug/nodeWiringPi.node',
'/root/raspiBuzzer/node_modules/node-wiring-pi/out/Release/nodeWiringPi.node',
'/root/raspiBuzzer/node_modules/node-wiring-pi/Release/nodeWiringPi.node',
'/root/raspiBuzzer/node_modules/node-wiring-pi/build/default/nodeWiringPi.node',
'/root/raspiBuzzer/node_modules/node-wiring-pi/compiled/12.20.1/linux/arm/nodeWiringPi.node',
'/root/raspiBuzzer/node_modules/node-wiring-pi/addon-build/release/install-root/nodeWiringPi.node',
'/root/raspiBuzzer/node_modules/node-wiring-pi/addon-build/debug/install-root/nodeWiringPi.node',
'/root/raspiBuzzer/node_modules/node-wiring-pi/addon-build/default/install-root/nodeWiringPi.node',
'/root/raspiBuzzer/node_modules/node-wiring-pi/lib/binding/node-v72-linux-arm/nodeWiringPi.node'
]
}
Anything I can do?
I'm using a Raspberry 3B+ with node v12, also tried to use node v14. It worked before but my SD card broke and I have to reinstall raspbian on a new card.
I tried to install it using command
sudo npm install node-wiring-pi
. It didn't work. Also tired it using root user: