I can't install node-red-contrib-rc522 or mfrc522-rfid

Hi, I just installed raspberry with node red v.4.0.9 and I can't install node-red-contrib-rc522 or mfrc522-rfid nodes.

2025-05-19T13:37:48.555Z Instalar : node-red-contrib-rc522 1.0.3

2025-05-19T13:37:48.803Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --omit=dev --engine-strict node-red-contrib-rc522@1.0.3
2025-05-19T13:37:57.817Z [err] npm error code 1
2025-05-19T13:37:57.817Z [err] npm error path /home/pi/.node-red/node_modules/rpio
2025-05-19T13:37:57.817Z [err] npm error command failed
2025-05-19T13:37:57.818Z [err] npm error command sh -c node-gyp rebuild
2025-05-19T13:37:57.818Z [err] npm error make: se entra en el directorio '/home/pi/.node-red/node_modules/rpio/build'
2025-05-19T13:37:57.818Z [err] npm error CXX(target) Release/obj.target/rpio/src/rpio.o
2025-05-19T13:37:57.818Z [err] npm error make: se sale del directorio '/home/pi/.node-red/node_modules/rpio/build'
2025-05-19T13:37:57.819Z [err] npm error gyp info it worked if it ends with ok
2025-05-19T13:37:57.819Z [err] npm error gyp info using node-gyp@10.1.0
2025-05-19T13:37:57.819Z [err] npm error gyp info using node@20.19.1 | linux | arm
2025-05-19T13:37:57.819Z [err] npm error gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3"
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn /usr/bin/python3
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args [
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args 'binding.gyp',
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args '-f',
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args 'make',
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args '-I',
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args '/home/pi/.node-red/node_modules/rpio/build/config.gypi',
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args '-I',
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args '-I',
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args '/home/pi/.cache/node-gyp/20.19.1/include/node/common.gypi',
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args '-Dlibrary=shared_library',
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args '-Dvisibility=default',
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args '-Dnode_root_dir=/home/pi/.cache/node-gyp/20.19.1',
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args '-Dnode_lib_file=/home/pi/.cache/node-gyp/20.19.1/<(target_arch)/node.lib',
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args '-Dmodule_root_dir=/home/pi/.node-red/node_modules/rpio',
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args '-Dnode_engine=v8',
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args '--depth=.',
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args '--no-parallel',
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args '--generator-output',
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args 'build',
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args '-Goutput_dir=.'
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args ]
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn make
2025-05-19T13:37:57.819Z [err] npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
2025-05-19T13:37:57.819Z [err] npm error In file included from ../node_modules/nan/nan.h:176,
2025-05-19T13:37:57.819Z [err] npm error from ../src/rpio.cc:17:
2025-05-19T13:37:57.819Z [err] npm error ../node_modules/nan/nan_callbacks.h:55:23: error: ‘AccessorSignature’ is not a member of ‘v8’
2025-05-19T13:37:57.819Z [err] npm error 55 | typedef v8::Localv8::AccessorSignature Sig;
2025-05-19T13:37:57.819Z [err] npm error | ^~~~~~~~~~~~~~~~~
2025-05-19T13:37:57.819Z [err] npm error ../node_modules/nan/nan_callbacks.h:55:40: error: template argument 1 is invalid
2025-05-19T13:37:57.819Z [err] npm error 55 | typedef v8::Localv8::AccessorSignature Sig;
2025-05-19T13:37:57.819Z [err] npm error | ^
2025-05-19T13:37:57.819Z [err] npm error ../node_modules/nan/nan.h: In function ‘void Nan::SetAccessor(v8::Localv8::ObjectTemplate, v8::Localv8::String, GetterCallback, SetterCallback, v8::Localv8::Value, v8::AccessControl, v8::PropertyAttribute, imp::Sig)’:
2025-05-19T13:37:57.819Z [err] npm error ../node_modules/nan/nan.h:2542:19: error: no matching function for call to ‘v8::ObjectTemplate::SetAccessor(v8::Localv8::String&, void (&)(v8::Localv8::Name, const v8::PropertyCallbackInfov8::Value&), void (&)(v8::Localv8::Name, v8::Localv8::Value, const v8::PropertyCallbackInfo&), v8::Localv8::Object&, v8::AccessControl&, v8::PropertyAttribute&, Nan::imp::Sig&)’
2025-05-19T13:37:57.819Z [err] npm error 2542 | tpl->SetAccessor(
2025-05-19T13:37:57.819Z [err] npm error | ^
2025-05-19T13:37:57.819Z [err] npm error 2543 | name
2025-05-19T13:37:57.819Z [err] npm error | ~~~~
2025-05-19T13:37:57.819Z [err] npm error 2544 | , getter_
2025-05-19T13:37:57.819Z [err] npm error | ~~~~~~~~~
2025-05-19T13:37:57.819Z [err] npm error 2545 | , setter_
2025-05-19T13:37:57.819Z [err] npm error | ~~~~~~~~~
2025-05-19T13:37:57.819Z [err] npm error 2546 | , obj
2025-05-19T13:37:57.819Z [err] npm error | ~~~~~
2025-05-19T13:37:57.819Z [err] npm error 2547 | , settings
2025-05-19T13:37:57.819Z [err] npm error | ~~~~~~~~~~
2025-05-19T13:37:57.819Z [err] npm error 2548 | , attribute
2025-05-19T13:37:57.819Z [err] npm error | ~~~~~~~~~~~
2025-05-19T13:37:57.819Z [err] npm error 2549 | , signature);
2025-05-19T13:37:57.819Z [err] npm error | ~~~~~~~~~~~~
2025-05-19T13:37:57.819Z [err] npm error In file included from /home/pi/.cache/node-gyp/20.19.1/include/node/v8-function.h:15,
2025-05-19T13:37:57.819Z [err] npm error from /home/pi/.cache/node-gyp/20.19.1/include/node/v8.h:33,
2025-05-19T13:37:57.819Z [err] npm error from /home/pi/.cache/node-gyp/20.19.1/include/node/node.h:73,
2025-05-19T13:37:57.819Z [err] npm error from ../node_modules/nan/nan.h:56:
2025-05-19T13:37:57.819Z [err] npm error /home/pi/.cache/node-gyp/20.19.1/include/node/v8-template.h:809:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Localv8::String, v8::AccessorGetterCallback, v8::AccessorSetterCallback, v8::Localv8::Value, v8::AccessControl, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)’
2025-05-19T13:37:57.819Z [err] npm error 809 | void SetAccessor(
2025-05-19T13:37:57.819Z [err] npm error | ^

2025-05-19T13:37:57.819Z [err] npm error /home/pi/.cache/node-gyp/20.19.1/include/node/v8-template.h:814:22: note: no known conversion for argument 7 from ‘Nan::imp::Sig’ {aka ‘int’} to ‘v8::SideEffectType’
2025-05-19T13:37:57.819Z [err] npm error 814 | SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,
2025-05-19T13:37:57.819Z [err] npm error | ~^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2025-05-19T13:37:57.819Z [err] npm error /home/pi/.cache/node-gyp/20.19.1/include/node/v8-template.h:816:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Localv8::Name, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Localv8::Value, v8::AccessControl, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)’
2025-05-19T13:37:57.819Z [err] npm error 816 | void SetAccessor(
2025-05-19T13:37:57.819Z [err] npm error | ^~~~~~~~~~~
2025-05-19T13:37:57.819Z [err] npm error /home/pi/.cache/node-gyp/20.19.1/include/node/v8-template.h:821:22: note: no known conversion for argument 7 from ‘Nan::imp::Sig’ {aka ‘int’} to ‘v8::SideEffectType’
2025-05-19T13:37:57.819Z [err] npm error 821 | SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,
2025-05-19T13:37:57.819Z [err] npm error | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2025-05-19T13:37:57.819Z [err] npm error ../src/rpio.cc: At global scope:
2025-05-19T13:37:57.819Z [err] npm error /home/pi/.cache/node-gyp/20.19.1/include/node/node.h:1226:7: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
2025-05-19T13:37:57.819Z [err] npm error 1226 | (node::addon_register_func) (regfunc),
2025-05-19T13:37:57.819Z [err] npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2025-05-19T13:37:57.819Z [err] npm error /home/pi/.cache/node-gyp/20.19.1/include/node/node.h:1260:3: note: in expansion of macro ‘NODE_MODULE_X’
2025-05-19T13:37:57.819Z [err] npm error 1260 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
2025-05-19T13:37:57.819Z [err] npm error | ^~~~~~~~~~~~~
2025-05-19T13:37:57.819Z [err] npm error ../src/rpio.cc:499:1: note: in expansion of macro ‘NODE_MODULE’
2025-05-19T13:37:57.819Z [err] npm error 499 | NODE_MODULE(rpio, setup)
2025-05-19T13:37:57.819Z [err] npm error | ^~~~~~~~~~~
2025-05-19T13:37:57.819Z [err] npm error make: *** [rpio.target.mk:110: Release/obj.target/rpio/src/rpio.o] Error 1
2025-05-19T13:37:57.819Z [err] npm error gyp ERR! build error
2025-05-19T13:37:57.819Z [err] npm error gyp ERR! stack Error: make failed with exit code: 2
2025-05-19T13:37:57.819Z [err] npm error gyp ERR! stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
2025-05-19T13:37:57.819Z [err] npm error gyp ERR! System Linux 6.12.25+rpt-rpi-v8
2025-05-19T13:37:57.819Z [err] npm error gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2025-05-19T13:37:57.819Z [err] npm error gyp ERR! cwd /home/pi/.node-red/node_modules/rpio
2025-05-19T13:37:57.819Z [err] npm error gyp ERR! node -v v20.19.1
2025-05-19T13:37:57.819Z [err] npm error gyp ERR! node-gyp -v v10.1.0
2025-05-19T13:37:57.819Z [err] npm error gyp ERR! not ok
2025-05-19T13:37:57.824Z [err] npm error A complete log of this run can be found in: /home/pi/.npm/_logs/2025-05-19T13_37_49_210Z-debug-0.log
2025-05-19T13:37:57.836Z rc=1

HELP!!!!!!

I think probably the node is not compatible with nodejs 20. I can't check at the moment, has it been updated recently?

Answering my own question, it has not been updated for 5 years and there are unaddressed issues. I think you need to find an alternative.