Hi all,
I'm trying to install this node but it's failing and I don't see the reason....anyone smarter than me is seeing it?
If so, THANKS!!!!!
Here is the log:
2021-07-11T14:06:21.014Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production ncd-red-mcp23008@1.5.5
2021-07-11T14:06:32.066Z [err] npm
2021-07-11T14:06:32.066Z [err] ERR! code 1
2021-07-11T14:06:32.066Z [err] npm ERR! path /Users/rob/.node-red/node_modules/@serialport/bindings
2021-07-11T14:06:32.067Z [err] npm ERR! command failed
2021-07-11T14:06:32.067Z [err] npm ERR!
2021-07-11T14:06:32.067Z [err] command sh -c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2021-07-11T14:06:32.067Z [err] npm ERR! CXX(target) Release/obj.target/bindings/src/serialport.o
2021-07-11T14:06:32.067Z [err] npm ERR! gyp info it worked if it ends with ok
2021-07-11T14:06:32.067Z [err] npm ERR! gyp info using node-gyp@7.1.2
2021-07-11T14:06:32.067Z [err] npm ERR!
2021-07-11T14:06:32.067Z [err] gyp info using node@14.17.1 | darwin | x64
2021-07-11T14:06:32.067Z [err] npm ERR! gyp info find Python using Python version 3.9.5 found at "/Library/Frameworks/Python.framework/Versions/3.9/bin/python3"
2021-07-11T14:06:32.067Z [err] npm ERR! gyp info spawn /Library/Frameworks/Python.framework/Versions/3.9/bin/python3
2021-07-11T14:06:32.067Z [err] npm ERR!
2021-07-11T14:06:32.067Z [err] gyp info spawn args [
2021-07-11T14:06:32.067Z [err] npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
2021-07-11T14:06:32.067Z [err] npm ERR! gyp info spawn args 'binding.gyp',
2021-07-11T14:06:32.067Z [err] npm ERR! gyp info spawn args '-f',
2021-07-11T14:06:32.067Z [err] npm ERR! gyp info spawn args 'make',
2021-07-11T14:06:32.067Z [err] npm
2021-07-11T14:06:32.067Z [err] ERR! gyp info spawn args '-I',
2021-07-11T14:06:32.067Z [err] npm ERR!
2021-07-11T14:06:32.067Z [err] gyp info spawn args '/Users/rob/.node-red/node_modules/@serialport/bindings/build/config.gypi',
2021-07-11T14:06:32.067Z [err] npm ERR! gyp info spawn args '-I',
2021-07-11T14:06:32.067Z [err] npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
2021-07-11T14:06:32.067Z [err] npm
2021-07-11T14:06:32.067Z [err] ERR! gyp info spawn args '-I',
2021-07-11T14:06:32.067Z [err] npm ERR!
2021-07-11T14:06:32.067Z [err] gyp info spawn args '/Users/rob/Library/Caches/node-gyp/14.17.1/include/node/common.gypi',
2021-07-11T14:06:32.067Z [err] npm ERR! gyp info spawn args '-Dlibrary=shared_library',
2021-07-11T14:06:32.067Z [err] npm
2021-07-11T14:06:32.067Z [err] ERR! gyp info spawn args '-Dvisibility=default',
2021-07-11T14:06:32.067Z [err] npm
2021-07-11T14:06:32.067Z [err] ERR! gyp info spawn args '-Dnode_root_dir=/Users/rob/Library/Caches/node-gyp/14.17.1',
2021-07-11T14:06:32.067Z [err] npm
2021-07-11T14:06:32.067Z [err] ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
2021-07-11T14:06:32.067Z [err] npm
2021-07-11T14:06:32.067Z [err] ERR! gyp info spawn args '-Dnode_lib_file=/Users/rob/Library/Caches/node-gyp/14.17.1/<(target_arch)/node.lib',
2021-07-11T14:06:32.067Z [err] npm
2021-07-11T14:06:32.067Z [err] ERR! gyp info spawn args '-Dmodule_root_dir=/Users/rob/.node-red/node_modules/@serialport/bindings',
2021-07-11T14:06:32.067Z [err] npm ERR!
2021-07-11T14:06:32.067Z [err] gyp info spawn args '-Dnode_engine=v8',
2021-07-11T14:06:32.067Z [err] npm ERR!
2021-07-11T14:06:32.067Z [err] gyp info spawn args '--depth=.',
2021-07-11T14:06:32.067Z [err] npm
2021-07-11T14:06:32.067Z [err] ERR! gyp info spawn args '--no-parallel',
2021-07-11T14:06:32.067Z [err] npm
2021-07-11T14:06:32.067Z [err] ERR! gyp info spawn args '--generator-output',
2021-07-11T14:06:32.067Z [err] npm
2021-07-11T14:06:32.067Z [err] ERR! gyp info spawn args 'build',
2021-07-11T14:06:32.067Z [err] npm ERR!
2021-07-11T14:06:32.067Z [err] gyp info spawn args '-Goutput_dir=.'
2021-07-11T14:06:32.067Z [err] npm
2021-07-11T14:06:32.067Z [err] ERR! gyp info spawn args ]
2021-07-11T14:06:32.067Z [err] npm
2021-07-11T14:06:32.067Z [err] ERR! No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
2021-07-11T14:06:32.067Z [err] npm
2021-07-11T14:06:32.067Z [err] ERR!
2021-07-11T14:06:32.067Z [err] npm
2021-07-11T14:06:32.067Z [err] ERR! No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
2021-07-11T14:06:32.067Z [err] npm ERR!
2021-07-11T14:06:32.067Z [err]
2021-07-11T14:06:32.067Z [err] npm ERR!
2021-07-11T14:06:32.067Z [err] No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
2021-07-11T14:06:32.067Z [err] npm
2021-07-11T14:06:32.067Z [err] ERR!
2021-07-11T14:06:32.067Z [err] npm
2021-07-11T14:06:32.067Z [err] ERR! gyp info spawn make
2021-07-11T14:06:32.067Z [err] npm ERR!
2021-07-11T14:06:32.067Z [err] gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
2021-07-11T14:06:32.067Z [err] npm ERR!
2021-07-11T14:06:32.067Z [err] ../src/serialport.cpp:329:14: error: no matching member function for call to 'Set'
2021-07-11T14:06:32.067Z [err] npm
2021-07-11T14:06:32.067Z [err] ERR! results->Set(Nan::New<v8::String>("cts").ToLocalChecked(), Nan::New<v8::Boolean>(data->cts));
2021-07-11T14:06:32.067Z [err] npm
2021-07-11T14:06:32.067Z [err] ERR! ~~~~~~~~~^~~
2021-07-11T14:06:32.067Z [err] npm
2021-07-11T14:06:32.067Z [err] ERR! /Users/rob/Library/Caches/node-gyp/14.17.1/include/node/v8.h:3670:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
2021-07-11T14:06:32.067Z [err] npm ERR!
2021-07-11T14:06:32.068Z [err] V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR! ^
2021-07-11T14:06:32.068Z [err] npm ERR!
2021-07-11T14:06:32.068Z [err] /Users/rob/Library/Caches/node-gyp/14.17.1/include/node/v8.h:3673:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
2021-07-11T14:06:32.068Z [err] npm ERR!
2021-07-11T14:06:32.068Z [err] V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR! ^
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR! ../src/serialport.cpp:330:14: error: no matching member function for call to 'Set'
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR! results->Set(Nan::New<v8::String>("dsr").ToLocalChecked(), Nan::New<v8::Boolean>(data->dsr));
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR! ~~~~~~~~~^~~
2021-07-11T14:06:32.068Z [err] npm ERR!
2021-07-11T14:06:32.068Z [err] /Users/rob/Library/Caches/node-gyp/14.17.1/include/node/v8.h:3670:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
2021-07-11T14:06:32.068Z [err] npm ERR!
2021-07-11T14:06:32.068Z [err] V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR! ^
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR! /Users/rob/Library/Caches/node-gyp/14.17.1/include/node/v8.h:3673:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
2021-07-11T14:06:32.068Z [err] npm ERR!
2021-07-11T14:06:32.068Z [err] V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
2021-07-11T14:06:32.068Z [err] npm ERR!
2021-07-11T14:06:32.068Z [err] ^
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR! ../src/serialport.cpp:331:14: error: no matching member function for call to 'Set'
2021-07-11T14:06:32.068Z [err] npm ERR!
2021-07-11T14:06:32.068Z [err] results->Set(Nan::New<v8::String>("dcd").ToLocalChecked(), Nan::New<v8::Boolean>(data->dcd));
2021-07-11T14:06:32.068Z [err] npm ERR!
2021-07-11T14:06:32.068Z [err] ~~~~~~~~~^~~
2021-07-11T14:06:32.068Z [err] npm ERR!
2021-07-11T14:06:32.068Z [err] /Users/rob/Library/Caches/node-gyp/14.17.1/include/node/v8.h:3670:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR! ^
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR! /Users/rob/Library/Caches/node-gyp/14.17.1/include/node/v8.h:3673:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
2021-07-11T14:06:32.068Z [err] npm ERR!
2021-07-11T14:06:32.068Z [err] ^
2021-07-11T14:06:32.068Z [err] npm ERR!
2021-07-11T14:06:32.068Z [err] ../src/serialport.cpp:378:14: error: no matching member function for call to 'Set'
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR! results->Set(Nan::New<v8::String>("baudRate").ToLocalChecked(), Nan::New<v8::Integer>(data->baudRate));
2021-07-11T14:06:32.068Z [err] npm ERR!
2021-07-11T14:06:32.068Z [err] ~~~~~~~~~^~~
2021-07-11T14:06:32.068Z [err] npm ERR!
2021-07-11T14:06:32.068Z [err] /Users/rob/Library/Caches/node-gyp/14.17.1/include/node/v8.h:3670:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
2021-07-11T14:06:32.068Z [err] npm ERR!
2021-07-11T14:06:32.068Z [err] V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR! ^
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR!
2021-07-11T14:06:32.068Z [err] /Users/rob/Library/Caches/node-gyp/14.17.1/include/node/v8.h:3673:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
2021-07-11T14:06:32.068Z [err] npm ERR!
2021-07-11T14:06:32.068Z [err] V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR! ^
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR! 4 errors generated.
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR! make: *** [Release/obj.target/bindings/src/serialport.o] Error 1
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR! gyp ERR! build error
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR! gyp ERR! stack Error: `make` failed with exit code: 2
2021-07-11T14:06:32.068Z [err] npm ERR!
2021-07-11T14:06:32.068Z [err] gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
2021-07-11T14:06:32.068Z [err] npm ERR!
2021-07-11T14:06:32.068Z [err] gyp ERR! stack at ChildProcess.emit (events.js:375:28)
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR! gyp ERR! System Darwin 20.5.0
2021-07-11T14:06:32.068Z [err] npm ERR!
2021-07-11T14:06:32.068Z [err] gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR! gyp ERR! cwd /Users/rob/.node-red/node_modules/@serialport/bindings
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR! gyp ERR! node -v v14.17.1
2021-07-11T14:06:32.068Z [err] npm
2021-07-11T14:06:32.068Z [err] ERR!
2021-07-11T14:06:32.068Z [err] gyp ERR! node-gyp -v v7.1.2
2021-07-11T14:06:32.068Z [err] npm ERR!
2021-07-11T14:06:32.068Z [err] gyp ERR! not ok
2021-07-11T14:06:32.102Z [err]
2021-07-11T14:06:32.102Z [err] npm ERR!
2021-07-11T14:06:32.102Z [err] A complete log of this run can be found in:
2021-07-11T14:06:32.102Z [err] npm ERR! /Users/rob/.npm/_logs/2021-07-11T14_06_32_069Z-debug.log
2021-07-11T14:06:32.115Z rc=1 ```