yeah, and the code is already compatible so it should execute...
Can you execute the following commands from the terminal:
ls -ahl /usr/lib/node_modules/node-red/node_modules/@node-red/nodes/core/hardware/
Then, if that doesn't give an error test the following:
python /usr/lib/node_modules/node-red/node_modules/@node-red/nodes/core/hardware/nrgpio.py
If that gives the following error
Traceback (most recent call last):
File "nrgpio.py", line 17, in <module>
import RPi.GPIO as GPIO
ModuleNotFoundError: No module named 'RPi'
your next step should be to install the RPi python module on the device. To install that in the global python system that executes at /usr/bin/python, type sudo pip install RPi.GPIO.
If it doesn't get that error, I've no clue at all what is going wrong here.