Closed cyprus1spirit closed 4 years ago
should be fixed by PR #63
Try:
npm install https://github.com/pigd0g/serialport-gsm --save
until PR #63 is accepted.
OR use an older node version < 12
Thank you brothers. !!! Congratulations for your help in the community !
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
$ sudo npm install serialport-gsm
brings me into this beautiful error:
` npm WARN deprecated sprintf@0.1.5: The sprintf package is deprecated in favor of sprintf-js.
prebuild-install WARN install No prebuilt binaries found (target=13.12.0 runtime=node arch=x64 libc= platform=linux) make: Entering directory '/home/myserver/node_modules/@serialport/bindings/build' CXX(target) Release/obj.target/bindings/src/serialport.o ../src/serialport.cpp: In function ‘void EIO_AfterGet(uv_work_t)’: ../src/serialport.cpp:329:96: error: no matching function for call to ‘v8::Object::Set(v8::Local, Nan::imp::FactoryBase::return_t)’
results->Set(Nan::New("cts").ToLocalChecked(), Nan::New(data->cts));
^
In file included from /home/myserver/.cache/node-gyp/13.12.0/include/node/node.h:67:0,
from ../../../nan/nan.h:56,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/myserver/.cache/node-gyp/13.12.0/include/node/v8.h:3547:37: note: candidate: v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)
V8_WARN_UNUSED_RESULT Maybe Set(Local context,
^~~
/home/myserver/.cache/node-gyp/13.12.0/include/node/v8.h:3547:37: note: candidate expects 3 arguments, 2 provided
/home/myserver/.cache/node-gyp/13.12.0/include/node/v8.h:3550:37: note: candidate: v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)
V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index,
^~~
/home/myserver/.cache/node-gyp/13.12.0/include/node/v8.h:3550:37: note: candidate expects 3 arguments, 2 provided
../src/serialport.cpp:330:96: error: no matching function for call to ‘v8::Object::Set(v8::Local, Nan::imp::FactoryBase::return_t)’
results->Set(Nan::New("dsr").ToLocalChecked(), Nan::New(data->dsr));
^
In file included from /home/myserver/.cache/node-gyp/13.12.0/include/node/node.h:67:0,
from ../../../nan/nan.h:56,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/myserver/.cache/node-gyp/13.12.0/include/node/v8.h:3547:37: note: candidate: v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)
V8_WARN_UNUSED_RESULT Maybe Set(Local context,
^~~
/home/myserver/.cache/node-gyp/13.12.0/include/node/v8.h:3547:37: note: candidate expects 3 arguments, 2 provided
/home/myserver/.cache/node-gyp/13.12.0/include/node/v8.h:3550:37: note: candidate: v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)
V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index,
^~~
/home/myserver/.cache/node-gyp/13.12.0/include/node/v8.h:3550:37: note: candidate expects 3 arguments, 2 provided
../src/serialport.cpp:331:96: error: no matching function for call to ‘v8::Object::Set(v8::Local, Nan::imp::FactoryBase::return_t)’
results->Set(Nan::New("dcd").ToLocalChecked(), Nan::New(data->dcd));
^
In file included from /home/myserver/.cache/node-gyp/13.12.0/include/node/node.h:67:0,
from ../../../nan/nan.h:56,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/myserver/.cache/node-gyp/13.12.0/include/node/v8.h:3547:37: note: candidate: v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)
V8_WARN_UNUSED_RESULT Maybe Set(Local context,
^~~
/home/myserver/.cache/node-gyp/13.12.0/include/node/v8.h:3547:37: note: candidate expects 3 arguments, 2 provided
/home/myserver/.cache/node-gyp/13.12.0/include/node/v8.h:3550:37: note: candidate: v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)
V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index,
^~~
/home/myserver/.cache/node-gyp/13.12.0/include/node/v8.h:3550:37: note: candidate expects 3 arguments, 2 provided
../src/serialport.cpp: In function ‘void EIO_AfterGetBaudRate(uv_work_t )’:
../src/serialport.cpp:378:106: error: no matching function for call to ‘v8::Object::Set(v8::Local, Nan::imp::IntegerFactory::return_t)’
results->Set(Nan::New("baudRate").ToLocalChecked(), Nan::New(data->baudRate));
^
In file included from /home/myserver/.cache/node-gyp/13.12.0/include/node/node.h:67:0,
from ../../../nan/nan.h:56,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/myserver/.cache/node-gyp/13.12.0/include/node/v8.h:3547:37: note: candidate: v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)
V8_WARN_UNUSED_RESULT Maybe Set(Local context,
^~~
/home/myserver/.cache/node-gyp/13.12.0/include/node/v8.h:3547:37: note: candidate expects 3 arguments, 2 provided
/home/myserver/.cache/node-gyp/13.12.0/include/node/v8.h:3550:37: note: candidate: v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)
V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index,
^~~
/home/myserver/.cache/node-gyp/13.12.0/include/node/v8.h:3550:37: note: candidate expects 3 arguments, 2 provided
bindings.target.mk:114: recipe for target 'Release/obj.target/bindings/src/serialport.o' failed
make: *** [Release/obj.target/bindings/src/serialport.o] Error 1
make: Leaving directory '/home/myserver/node_modules/@serialport/bindings/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:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! System Linux 4.15.0-99-generic gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/myserver/node_modules/@serialport/bindings gyp ERR! node -v v13.12.0 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm WARN enoent ENOENT: no such file or directory, open '/home/myserver/package.json' npm WARN myserver No description npm WARN myserver No repository field. npm WARN myserver No README data npm WARN myserver No license field.npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @serialport/bindings@2.0.8 install:
prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @serialport/bindings@2.0.8 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/myserver/.npm/_logs/2020-05-09T10_46_50_424Z-debug.log
`