Moin,
ich bin neu hier im Forum und hoffe das man mir hier helfen kann.
ich habe wie oben von lustily beschrieben die selbe Hardware und auch genau das selbe problem.
-
ioBroker.admin 3.1.12
-
nodejs 6.12.3
was ich nun schon gemacht habe:
da ich keinen von diesen Ordner gefunden habe.
/opt/iobroker/node_modules/node-aead-crypto
/opt/iobroker/node_modules/iobroker.tradfri/node_modules/node-aead-crypto
/opt/iobroker/node_modules/iobroker.tradfri/node_modules/node-coap-client/node_modules/node-dtls-client/node_modules/node-aead-crypto
bin ich wie von AlCalzone beschrieben vorgegangen.
sudo npm i -g node-gyp
und dann im Ordner
/opt/iobroker/node_modules/node-aead-crypto
sudo node-gyp rebuild
dies führt zu dieser meldung:
! ````
pi@raspberrypi:/opt/iobroker $ cd /opt/iobroker/node_modules/node-aead-crypto/
pi@raspberrypi:/opt/iobroker/node_modules/node-aead-crypto $ sudo node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@6.12.3 | linux | arm
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/opt/iobroker/node_modules/node-aead-crypto/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/root/.node-gyp/6.12.3/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/root/.node-gyp/6.12.3',
gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/root/.node-gyp/6.12.3/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/node-aead-crypto',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp: Undefined variable module_name in binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/node-gyp/lib/configure.js:336:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
gyp ERR! System Linux 4.9.59+
gyp ERR! command "/usr/local/bin/node" "/usr/local/bin/node-gyp" "rebuild"
gyp ERR! cwd /opt/iobroker/node_modules/node-aead-crypto
gyp ERR! node -v v6.12.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
und im Iobroker wenn ich den Adapter nun Starte:
>! ````
host.raspberrypi 2018-02-20 08:07:42.220 info Restart adapter system.adapter.tradfri.0 because enabled
host.raspberrypi 2018-02-20 08:07:42.219 error instance system.adapter.tradfri.0 terminated with code 1 ()
host.raspberrypi 2018-02-20 08:07:42.217 error Caught by controller[0]: at Function.Module._load (module.js:438:3)
host.raspberrypi 2018-02-20 08:07:42.216 error Caught by controller[0]: at tryModuleLoad (module.js:446:12)
host.raspberrypi 2018-02-20 08:07:42.214 error Caught by controller[0]: at Module.load (module.js:487:32)
host.raspberrypi 2018-02-20 08:07:42.212 error Caught by controller[0]: at Object.Module._extensions..js (module.js:579:10)
host.raspberrypi 2018-02-20 08:07:42.211 error Caught by controller[0]: at Module._compile (module.js:570:32)
host.raspberrypi 2018-02-20 08:07:42.209 error Caught by controller[0]: at Object. (/opt/iobroker/node_modules/node-aead-crypto/index.js:4:15)
host.raspberrypi 2018-02-20 08:07:42.202 error Caught by controller[0]: at require (internal/module.js:20:19)
host.raspberrypi 2018-02-20 08:07:42.201 error Caught by controller[0]: at Module.require (module.js:497:17)
host.raspberrypi 2018-02-20 08:07:42.199 error Caught by controller[0]: at Function.Module._load (module.js:417:25)
host.raspberrypi 2018-02-20 08:07:42.197 error Caught by controller[0]: at Function.Module._resolveFilename (module.js:469:15)
host.raspberrypi 2018-02-20 08:07:42.196 error Caught by controller[0]: Error: Cannot find module '/opt/iobroker/node_modules/node-aead-crypto/build/Release/node-v48-linux-arm/node_aead_crypto.node'
host.raspberrypi 2018-02-20 08:07:42.194 error Caught by controller[0]: ^
host.raspberrypi 2018-02-20 08:07:42.182 error Caught by controller[0]: throw err;
host.raspberrypi 2018-02-20 08:07:42.179 error Caught by controller[0]: module.js:471
host.raspberrypi 2018-02-20 08:07:37.619 info instance system.adapter.tradfri.0 started with pid 682
host.raspberrypi 2018-02-20 08:07:07.565 info Restart adapter system.adapter.tradfri.0 because enabled
host.raspberrypi 2018-02-20 08:07:07.562 error instance system.adapter.tradfri.0 terminated with code 1 ()
schon mal Danke und sollte ich hier etwas falsch kommentiert oder formatiert habe bitte ich um Verständnis.
gruß fossil