Open steezywee opened 1 year ago
Looks like a compilation error. This is quite unusual as the base package nrf24 has precompiled binaries for node version 16.
Have you try to install from the console:
cd $HOME/.node-red
npm install nrf24@0.2.0-beta
Also Could you provide some details about your setup (Device and OS version)?
Running RPI 3B. I've ran both the installers for nrf24 and node-red-contrib-nrf24, although nothing is showing up in my palette. When I try installing from the palette it also fails with this: `
2023-04-20T20:37:42.800Z Install : node-red-contrib-nrf24 0.0.2
2023-04-20T20:37:42.901Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-nrf24@0.0.2 2023-04-20T20:37:46.668Z [err] npm 2023-04-20T20:37:46.672Z [err]>::value>::Perform(data);
2023-04-20T20:39:14.688Z [err] npm
2023-04-20T20:39:14.689Z [err] ERR! | ^>::value>::Perform(data);
2023-04-20T20:39:14.690Z [err] npm ERR!
2023-04-20T20:39:14.690Z [err] | ^>::value>::Perform(data);
2023-04-20T20:39:14.691Z [err] npm ERR!
2023-04-20T20:39:14.691Z [err] | ^
2023-04-20T20:39:14.691Z [err] npm ERR! /home/jacob/.cache/node-gyp/16.20.0/include/node/v8-internal.h:492:63: error: ‘::Perform’ has not been declared
2023-04-20T20:39:14.691Z [err] npm ERR! 492 | !std::is_same<Data, std::remove_cv_t>::value>::Perform(data);
2023-04-20T20:39:14.692Z [err] npm ERR! | ^&, const string&)’:
2023-04-20T20:39:14.692Z [err] npm
2023-04-20T20:39:14.692Z [err] ERR! ../rf24_util.cc:15:45: error: no matching function for call to ‘v8::Value::Uint32Value()’
2023-04-20T20:39:14.692Z [err] npm
2023-04-20T20:39:14.692Z [err] ERR! 15 | return (v->IsUint32()) ? v->Uint32Value() : 0;
2023-04-20T20:39:14.692Z [err] npm
2023-04-20T20:39:14.693Z [err] ERR! | ^
2023-04-20T20:39:14.693Z [err] npm ERR!
2023-04-20T20:39:14.693Z [err] In file included from /home/jacob/.cache/node-gyp/16.20.0/include/node/node.h:73,
2023-04-20T20:39:14.693Z [err] npm ERR!
2023-04-20T20:39:14.693Z [err] from ../../nan/nan.h:60,
2023-04-20T20:39:14.693Z [err] npm ERR!
2023-04-20T20:39:14.693Z [err] from ../rf24_util.hpp:3,
2023-04-20T20:39:14.693Z [err] npm ERR!
2023-04-20T20:39:14.694Z [err] from ../rf24_util.cc:2:
2023-04-20T20:39:14.694Z [err] npm ERR!
2023-04-20T20:39:14.694Z [err] /home/jacob/.cache/node-gyp/16.20.0/include/node/v8.h:3104:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Local) const’
2023-04-20T20:39:14.694Z [err] npm ERR!
2023-04-20T20:39:14.694Z [err] 3104 | V8_WARN_UNUSED_RESULT Maybe Uint32Value(
2023-04-20T20:39:14.694Z [err] npm ERR! | ^, uint8_t , uint8_t)’:
2023-04-20T20:39:14.695Z [err] npm
2023-04-20T20:39:14.695Z [err] ERR! ../rf24_util.cc:20:34: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local&)’
2023-04-20T20:39:14.695Z [err] npm
2023-04-20T20:39:14.695Z [err] ERR! 20 | v8::String::Utf8Value value(val);
2023-04-20T20:39:14.695Z [err] npm
2023-04-20T20:39:14.696Z [err] ERR! | ^
2023-04-20T20:39:14.696Z [err] npm ERR!
2023-04-20T20:39:14.696Z [err] In file included from /home/jacob/.cache/node-gyp/16.20.0/include/node/node.h:73,
2023-04-20T20:39:14.696Z [err] npm ERR!
2023-04-20T20:39:14.696Z [err] from ../../nan/nan.h:60,
2023-04-20T20:39:14.696Z [err] npm ERR!
2023-04-20T20:39:14.702Z [err] from ../rf24_util.hpp:3,
2023-04-20T20:39:14.702Z [err] npm ERR! from ../rf24_util.cc:2:
2023-04-20T20:39:14.702Z [err] npm ERR! /home/jacob/.cache/node-gyp/16.20.0/include/node/v8.h:3581:5: note: candidate: ‘v8::String::Utf8Value::Utf8Value(v8::Isolate, v8::Local)’
2023-04-20T20:39:14.702Z [err] npm ERR! 3581 | Utf8Value(Isolate isolate, Local obj);
2023-04-20T20:39:14.702Z [err] npm ERR! | ^
2023-04-20T20:37:46.672Z [err] WARN config production Use
--omit=dev
instead. 2023-04-20T20:39:14.656Z [err] npm 2023-04-20T20:39:14.657Z [err] ERR! code 2023-04-20T20:39:14.657Z [err] 1 2023-04-20T20:39:14.658Z [err] npm 2023-04-20T20:39:14.658Z [err] ERR! 2023-04-20T20:39:14.659Z [err] path 2023-04-20T20:39:14.660Z [err] /home/jacob/.node-red/node_modules/nrf24 2023-04-20T20:39:14.672Z [err] npm 2023-04-20T20:39:14.673Z [err] ERR! command failed 2023-04-20T20:39:14.673Z [err] npm ERR! 2023-04-20T20:39:14.673Z [err] command sh -c -- node-gyp rebuild 2023-04-20T20:39:14.674Z [err] npm 2023-04-20T20:39:14.674Z [err]2023-04-20T20:39:14.675Z [err] ERR! 2023-04-20T20:39:14.675Z [err] make: Entering directory '/home/jacob/.node-red/node_modules/nrf24/build' 2023-04-20T20:39:14.675Z [err] npm ERR! CXX(target) Release/obj.target/nRF24/tryabort.o 2023-04-20T20:39:14.675Z [err] npm ERR! CXX(target) Release/obj.target/nRF24/rf24_util.o 2023-04-20T20:39:14.675Z [err] npm 2023-04-20T20:39:14.676Z [err] ERR! make: Leaving directory '/home/jacob/.node-red/node_modules/nrf24/build' 2023-04-20T20:39:14.679Z [err] npm 2023-04-20T20:39:14.679Z [err] ERR! gyp info it worked if it ends with ok 2023-04-20T20:39:14.679Z [err] npm ERR! gyp info using node-gyp@9.3.1 2023-04-20T20:39:14.679Z [err] npm ERR! gyp info using node@16.20.0 | linux | arm 2023-04-20T20:39:14.679Z [err] npm 2023-04-20T20:39:14.680Z [err] ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3" 2023-04-20T20:39:14.680Z [err] npm 2023-04-20T20:39:14.680Z [err] ERR! gyp info spawn /usr/bin/python3 2023-04-20T20:39:14.680Z [err] npm 2023-04-20T20:39:14.680Z [err] ERR! gyp info spawn args [ 2023-04-20T20:39:14.680Z [err] npm ERR! 2023-04-20T20:39:14.680Z [err] gyp info spawn args '/home/jacob/node_modules/node-gyp/gyp/gyp_main.py', 2023-04-20T20:39:14.680Z [err] npm ERR! 2023-04-20T20:39:14.681Z [err] gyp info spawn args 'binding.gyp', 2023-04-20T20:39:14.681Z [err] npm ERR! 2023-04-20T20:39:14.681Z [err] gyp info spawn args '-f', 2023-04-20T20:39:14.681Z [err] npm ERR! 2023-04-20T20:39:14.681Z [err] gyp info spawn args 'make', 2023-04-20T20:39:14.681Z [err] npm ERR! 2023-04-20T20:39:14.682Z [err] gyp info spawn args '-I', 2023-04-20T20:39:14.682Z [err] npm ERR! 2023-04-20T20:39:14.682Z [err] gyp info spawn args '/home/jacob/.node-red/node_modules/nrf24/build/config.gypi', 2023-04-20T20:39:14.682Z [err] npm ERR! 2023-04-20T20:39:14.682Z [err] gyp info spawn args '-I', 2023-04-20T20:39:14.682Z [err] npm ERR! gyp info spawn args '/home/jacob/node_modules/node-gyp/addon.gypi', 2023-04-20T20:39:14.682Z [err] npm ERR! gyp info spawn args '-I', 2023-04-20T20:39:14.683Z [err] npm ERR! gyp info spawn args '/home/jacob/.cache/node-gyp/16.20.0/include/node/common.gypi', 2023-04-20T20:39:14.683Z [err] npm ERR! gyp info spawn args '-Dlibrary=shared_library', 2023-04-20T20:39:14.683Z [err] npm ERR! gyp info spawn args '-Dvisibility=default', 2023-04-20T20:39:14.683Z [err] npm ERR! gyp info spawn args '-Dnode_root_dir=/home/jacob/.cache/node-gyp/16.20.0', 2023-04-20T20:39:14.684Z [err] npm ERR! gyp info spawn args '-Dnode_gyp_dir=/home/jacob/node_modules/node-gyp', 2023-04-20T20:39:14.684Z [err] npm ERR! gyp info spawn args '-Dnode_lib_file=/home/jacob/.cache/node-gyp/16.20.0/<(target_arch)/node.lib', 2023-04-20T20:39:14.684Z [err] npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/jacob/.node-red/node_modules/nrf24', 2023-04-20T20:39:14.684Z [err] npm 2023-04-20T20:39:14.684Z [err] ERR! gyp info spawn args '-Dnode_engine=v8', 2023-04-20T20:39:14.684Z [err] npm 2023-04-20T20:39:14.685Z [err] ERR! gyp info spawn args '--depth=.', 2023-04-20T20:39:14.685Z [err] npm 2023-04-20T20:39:14.685Z [err] ERR! gyp info spawn args '--no-parallel', 2023-04-20T20:39:14.685Z [err] npm 2023-04-20T20:39:14.685Z [err] ERR! gyp info spawn args '--generator-output', 2023-04-20T20:39:14.685Z [err] npm 2023-04-20T20:39:14.686Z [err] ERR! gyp info spawn args 'build', 2023-04-20T20:39:14.686Z [err] npm ERR! 2023-04-20T20:39:14.686Z [err] gyp info spawn args '-Goutput_dir=.' 2023-04-20T20:39:14.686Z [err] npm ERR! 2023-04-20T20:39:14.686Z [err] gyp info spawn args ] 2023-04-20T20:39:14.686Z [err] npm ERR! 2023-04-20T20:39:14.686Z [err] gyp info spawn make 2023-04-20T20:39:14.686Z [err] npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] 2023-04-20T20:39:14.687Z [err] npm ERR! In file included from /home/jacob/.cache/node-gyp/16.20.0/include/node/v8.h:30, 2023-04-20T20:39:14.687Z [err] npm ERR! from /home/jacob/.cache/node-gyp/16.20.0/include/node/node.h:73, 2023-04-20T20:39:14.687Z [err] npm ERR! from ../../nan/nan.h:60, 2023-04-20T20:39:14.687Z [err] npm ERR! from ../rf24_util.hpp:3, 2023-04-20T20:39:14.688Z [err] npm ERR! from ../rf24_util.cc:2: 2023-04-20T20:39:14.688Z [err] npm ERR! /home/jacob/.cache/node-gyp/16.20.0/include/node/v8-internal.h: In function ‘void v8::internal::PerformCastCheck(T)’: 2023-04-20T20:39:14.688Z [err] npm ERR! /home/jacob/.cache/node-gyp/16.20.0/include/node/v8-internal.h:492:38: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’? 2023-04-20T20:39:14.688Z [err] npm 2023-04-20T20:39:14.688Z [err] ERR! 492 | !std::is_same<Data, std::remove_cv_t
~~2023-04-20T20:39:14.689Z [err] npm 2023-04-20T20:39:14.689Z [err] ERR! | remove_cv 2023-04-20T20:39:14.689Z [err] npm ERR! 2023-04-20T20:39:14.689Z [err] /home/jacob/.cache/node-gyp/16.20.0/include/node/v8-internal.h:492:38: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’? 2023-04-20T20:39:14.689Z [err] npm ERR! 2023-04-20T20:39:14.690Z [err] 492 | !std::is_same<Data, std::remove_cv_t~~2023-04-20T20:39:14.690Z [err] npm ERR! 2023-04-20T20:39:14.690Z [err] | remove_cv 2023-04-20T20:39:14.690Z [err] npm ERR! 2023-04-20T20:39:14.690Z [err] /home/jacob/.cache/node-gyp/16.20.0/include/node/v8-internal.h:492:50: error: template argument 2 is invalid 2023-04-20T20:39:14.690Z [err] npm ERR! 2023-04-20T20:39:14.691Z [err] 492 | !std::is_same<Data, std::remove_cv_t~~ 2023-04-20T20:39:14.692Z [err] npm ERR! ../rf24_util.cc: In function ‘uint32_t ObjGetUInt(v8::Local~~2023-04-20T20:39:14.694Z [err] npm ERR! /home/jacob/.cache/node-gyp/16.20.0/include/node/v8.h:3104:41: note: candidate expects 1 argument, 0 provided 2023-04-20T20:39:14.694Z [err] npm 2023-04-20T20:39:14.695Z [err] ERR! ../rf24_util.cc: In function ‘bool ConvertHexAddress(v8::Local~~~~ 2023-04-20T20:39:14.702Z [err] npm ERR! /home/jacob/.cache/node-gyp/16.20.0/include/node/v8.h:3581:5: note: candidate expects 2 arguments, 1 provided 2023-04-20T20:39:14.702Z [err] npm ERR! make: *** [nRF24.target.mk:137: Release/obj.target/nRF24/rf24_util.o] Error 1 2023-04-20T20:39:14.702Z [err] npm ERR! gyp ERR! build error 2023-04-20T20:39:14.702Z [err] npm ERR! gyp ERR! stack Error:make
failed with exit code: 2 2023-04-20T20:39:14.702Z [err] npm ERR! gyp ERR! stack at ChildProcess.onExit (/home/jacob/node_modules/node-gyp/lib/build.js:203:23) 2023-04-20T20:39:14.702Z [err] npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28) 2023-04-20T20:39:14.702Z [err] npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12) 2023-04-20T20:39:14.702Z [err] npm ERR! gyp ERR! System Linux 6.1.21-v7+ 2023-04-20T20:39:14.702Z [err] npm ERR! gyp ERR! command "/usr/bin/node" "/home/jacob/node_modules/.bin/node-gyp" "rebuild" 2023-04-20T20:39:14.702Z [err] npm ERR! gyp ERR! cwd /home/jacob/.node-red/node_modules/nrf24 2023-04-20T20:39:14.702Z [err] npm ERR! gyp ERR! node -v v16.20.0 2023-04-20T20:39:14.702Z [err] npm ERR! gyp ERR! node-gyp -v v9.3.1 2023-04-20T20:39:14.702Z [err] npm ERR! gyp ERR! not ok 2023-04-20T20:39:14.717Z [err] 2023-04-20T20:39:14.718Z [err] npm 2023-04-20T20:39:14.718Z [err] ERR! A complete log of this run can be found in: 2023-04-20T20:39:14.718Z [err] npm ERR! /home/jacob/.npm/_logs/2023-04-20T20_37_46_449Z-debug-0.log 2023-04-20T20:39:14.749Z rc=1`