I've been working to update my installs of this excellent project and I have it installing on Raspberry Pi OS trixie (the latest version) and nodejs v20, but the install process fails for nodejs v22 and v24.
I'm a bit out of my depth here as this is the only project I use that uses nodejs, npm and pm2.
Any help in advancing compatibility to nodejs version >20 would be welcome.
When using nodejs and trixie, I had to do the following to get the NFC reader recognised by the system:
Create a file /etc/polkit-1/rules.d/60-pcscd.rules with this content:
polkit.addRule(function(action, subject) {
if (action.id == "org.debian.pcsc-lite.access_pcsc" &&
subject.isInGroup("plugdev")) {
return polkit.Result.YES;
}
});
then, create a file /etc/udev/rules.d/99-acr122.rules with this content:
SUBSYSTEM=="usb", ATTRS{idVendor}=="072f", ATTRS{idProduct}=="2200", GROUP="plugdev", MODE="0660"
to activate the udev rule, execute the following:
sudo udevadm control --reload-rules
Currently, the reader only works if the project is ran with sudo, so I have a permissions issue somewhere, but I'm struggling to fix that too...
I've been working to update my installs of this excellent project and I have it installing on Raspberry Pi OS trixie (the latest version) and nodejs v20, but the install process fails for nodejs v22 and v24.
I'm a bit out of my depth here as this is the only project I use that uses nodejs, npm and pm2.
Any help in advancing compatibility to nodejs version >20 would be welcome.
When using nodejs and trixie, I had to do the following to get the NFC reader recognised by the system:
Create a file /etc/polkit-1/rules.d/60-pcscd.rules with this content:
then, create a file /etc/udev/rules.d/99-acr122.rules with this content:
SUBSYSTEM=="usb", ATTRS{idVendor}=="072f", ATTRS{idProduct}=="2200", GROUP="plugdev", MODE="0660"to activate the udev rule, execute the following:
sudo udevadm control --reload-rulesCurrently, the reader only works if the project is ran with sudo, so I have a permissions issue somewhere, but I'm struggling to fix that too...