Hi,
while writing a module which uses IKEA Tradfri Lights as “Trigger” (the light is triggerd by a tradfi motion trigger) for MagicMirror I always become the following error:
npm ERR! /home/pi/.npm/_logs/2018-02-17T19_30_56_242Z-debug.log
/home/pi/MagicMirror/node_modules/electron/dist/electron js/electron.js: symbol lookup error: /home/pi/MagicMirror/modules/MMM-Tradfri-Trigger/node_modules/node-aead-crypto/build/Release/electron-v1.4-linux-arm/node_aead_crypto.node: undefined symbol: EVP_aes_128_ccm
npm ERR! file sh
The code works while not running as MagicMirror Module. So I think there may a be a problem with the openssl library electron for MagicMirror uses.
I used that script to rebuild the binaries for electron.
"scripts": {
"postinstall": "node_modules/.bin/electron-rebuild -e ../../node_modules/electron"
},
Has someone an idea?
node-aead-crypto is used by the TradFri Library “node-tradfi-client@0.8.1”.