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

**URL:** https://discourse.nodered.org/t/i-cant-install-node-red-contrib-rc522-or-mfrc522-rfid/97148
**Category:** General
**Created:** [19 May 2025 13:39 UTC](https://discourse.nodered.org/t/i-cant-install-node-red-contrib-rc522-or-mfrc522-rfid/97148 "2025-05-19T13:39:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![splaza](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@splaza](https://discourse.nodered.org/u/splaza)
#### Post date: [19 May 2025 13:39 UTC](https://discourse.nodered.org/t/i-cant-install-node-red-contrib-rc522-or-mfrc522-rfid/97148/1 "2025-05-19T13:39:17Z")

</div>

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:👿: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:👿: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:👿: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!!!!!!

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [19 May 2025 14:57 UTC](https://discourse.nodered.org/t/i-cant-install-node-red-contrib-rc522-or-mfrc522-rfid/97148/2 "2025-05-19T14:57:18Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [19 May 2025 15:00 UTC](https://discourse.nodered.org/t/i-cant-install-node-red-contrib-rc522-or-mfrc522-rfid/97148/3 "2025-05-19T15:00:39Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [17 August 2025 15:01 UTC](https://discourse.nodered.org/t/i-cant-install-node-red-contrib-rc522-or-mfrc522-rfid/97148/4 "2025-08-17T15:01:01Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
