Instal rpio via node on my windows machine and i am using it in an electron application. When running it on my raspberry pi 3 model b the developer console writes
Uncaught Error: Cannot find module 'rpio'.
I have tried building the application using electron-builder with asar enabled and electron-builder without asar.
My code in a nutshell is:
var rpio = require('rpio');
in a file (not the main.js file) in my project's root.
Instal rpio via node on my windows machine and i am using it in an electron application. When running it on my raspberry pi 3 model b the developer console writes
Uncaught Error: Cannot find module 'rpio'
.I have tried building the application using electron-builder with asar enabled and electron-builder without asar.
My code in a nutshell is:
var rpio = require('rpio');
in a file (not the main.js file) in my project's root.package.json: