-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
I don't know anything but it's not working and gyp crapping out with a ton of unhelpful errors.
npm error code 1
npm error path project/node_modules/@serialport/bindings
npm error command failed
npm error command sh -c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
npm error CXX(target) Release/obj.target/bindings/src/serialport.o
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@10.1.0
npm error gyp info using node@20.19.2 | darwin | x64
npm error gyp info find Python using Python version 3.13.3 found at "/usr/local/opt/python@3.13/bin/python3.13"
npm error gyp info spawn /usr/local/opt/python@3.13/bin/python3.13
npm error gyp info spawn args [
npm error gyp info spawn args 'node/v20.19.2/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args 'project/node_modules/@serialport/bindings/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '~/.nvm/versions/node/v20.19.2/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args 'node-gyp/20.19.2/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=node-gyp/20.19.2',
npm error gyp info spawn args '-Dnode_gyp_dir=~/nvm/versions/node/v20.19.2/lib/node_modules/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=node-gyp/20.19.2/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=project/node_modules/@serialport/bindings',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error ../src/serialport.cpp:329:14: error: no matching member function for call to 'Set'
npm error results->Set(Nan::New<v8::String>("cts").ToLocalChecked(), Nan::New<v8::Boolean>(data->cts));
npm error ~~~~~~~~~^~~
npm error node-gyp/20.19.2/include/node/v8-object.h:246:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm error V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm error ^
npm error node-gyp/20.19.2/include/node/v8-object.h:249:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm error V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm error ^
npm error ../src/serialport.cpp:330:14: error: no matching member function for call to 'Set'
npm error results->Set(Nan::New<v8::String>("dsr").ToLocalChecked(), Nan::New<v8::Boolean>(data->dsr));
npm error ~~~~~~~~~^~~
npm error node-gyp/20.19.2/include/node/v8-object.h:246:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm error V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm error ^
npm error node-gyp/20.19.2/include/node/v8-object.h:249:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm error V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm error ^
npm error ../src/serialport.cpp:331:14: error: no matching member function for call to 'Set'
npm error results->Set(Nan::New<v8::String>("dcd").ToLocalChecked(), Nan::New<v8::Boolean>(data->dcd));
npm error ~~~~~~~~~^~~
npm error node-gyp/20.19.2/include/node/v8-object.h:246:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm error V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm error ^
npm error node-gyp/20.19.2/include/node/v8-object.h:249:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm error V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm error ^
npm error ../src/serialport.cpp:378:14: error: no matching member function for call to 'Set'
npm error results->Set(Nan::New<v8::String>("baudRate").ToLocalChecked(), Nan::New<v8::Integer>(data->baudRate));
npm error ~~~~~~~~~^~~
npm error node-gyp/20.19.2/include/node/v8-object.h:246:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm error V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm error ^
npm error node-gyp/20.19.2/include/node/v8-object.h:249:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm error V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm error ^
npm error 4 errors generated.
npm error make: *** [Release/obj.target/bindings/src/serialport.o] Error 1
npm error gyp ERR! build error
npm error gyp ERR! stack Error: `make` failed with exit code: 2
npm error gyp ERR! stack at ChildProcess.<anonymous> (node/v20.19.2/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm error gyp ERR! System Darwin 18.7.0
npm error gyp ERR! command "~/.nvm/versions/node/v20.19.2/bin/node" "~/.nvm/versions/node/v20.19.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm error gyp ERR! cwd project/node_modules/@serialport/bindings
npm error gyp ERR! node -v v20.19.2
npm error gyp ERR! node-gyp -v v10.1.0
npm error gyp ERR! not ok```
Metadata
Metadata
Assignees
Labels
No labels