Accessing GPIO with node-red on M2 Zero


(Martin) #1

Guys need some help here. I have node-red installed on my M2 Zero(Armbian 5.36 Ubuntu 16.04.3LTS 4.14.3-sunxi) How do I give node-red access to the GPIO? Nothing I do or install seems to add any GPIO nodes…

When I try Node-wiring-bpi-zero I get an error about file not found npm ERR! enoent ENOENT: no such file or directory, rename ‘/root/node_modules/meshblu/node_modules/ansi-styles’

If I run npm install ansi-styles thats fails with same error…

No idea what I’m doing here to be honest. All i need is node red installed with GPIO access. Any help greatly recieved - is there a better way?