NEWS
Ikea tradfri lässt sich nicht installieren
-
Hallo zusammen,
leider bekommen ich den tradfri Adapter nicht installiert.
Hier die Daten aus der Console:
! ````
root@ioBrokerBETRIEB:~# cd /opt/iobroker
root@ioBrokerBETRIEB:/opt/iobroker# sudo npm install iobroker.tradfri --production --unsafe-perm
npm WARN deprecated github@0.2.4: 'github' has been renamed to '@octokit/rest' (https://git.io/vNB11)
! > node-aead-crypto@1.0.5 install /opt/iobroker/node_modules/node-aead-crypto
node lib/install.js
! running default installation script
module.js:478
throw err;
^
! Error: Cannot find module 'npmlog'
at Function.Module._resolveFilename (module.js:476:15)
at Function.Module._load (module.js:424:25)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at /opt/iobroker/node_modules/.bin/npm:18:11
at Object. <anonymous>(/opt/iobroker/node_modules/.bin/npm:75:3)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
child_process.js:516
throw err;
^
! Error: Command failed: npm run install:default
at checkExecSyncError (child_process.js:473:13)
at execSync (child_process.js:513:13)
at Object. <anonymous>(/opt/iobroker/node_modules/node-aead-crypto/lib/install.js:22:1)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.runMain (module.js:611:10)
at run (bootstrap_node.js:387:7)
iobroker.core@1.0.0 /opt/iobroker
└── (empty)
! npm ERR! Linux 4.9.0-6-amd64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.tradfri" "--production" "--unsafe-perm"
npm ERR! node v6.14.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
! npm ERR! node-aead-crypto@1.0.5 install:node lib/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-aead-crypto@1.0.5 install script 'node lib/install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-aead-crypto package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node lib/install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node-aead-crypto
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls node-aead-crypto
npm ERR! There is likely additional logging output above.
! npm ERR! Please include the following file with any support request:
npm ERR! /opt/iobroker/npm-debug.log
npm ERR! code 1</anonymous></anonymous>Hat jemand eine Idee was ich hier machen kann ? Meine Suche im Forum hat leider noch kein passendes Ergebnis gebracht. Systeminfos: Debian Host: 1.3.0 Node: 6.14.1 npm: 3.10.10 Gruß MIchael -
so konnte mich der Sache endlich mal wieder annehmen.
Update von NPM durchgeführt.
Bekomme weiterhin eine Fehlermeldung:
! ````
$ ./iobroker add tradfri
NPM version: 4.6.1
npm install iobroker.tradfri --production --save --prefix "/opt/iobroker" (System call)
module.js:478 throw err;
^
! Error: Cannot find module 'npmlog'
at Function.Module._resolveFilename (module.js:476:15)
at Function.Module._load (module.js:424:25)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at /opt/iobroker/node_modules/.bin/npm:18:11
at Object. <anonymous>(/opt/iobroker/node_modules/.bin/npm:75:3)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
! npm ERR! code ELIFECYCLEnpm ERR! errno 1
npm ERR! node-dtls-client@0.5.4 install:node install/postinstall.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-dtls-client@0.5.4 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
! npmERR!
A complete log of this run can be found in:
npm
ERR! /root/.npm/_logs/2018-05-29T19_02_41_520Z-debug.log
host.ioBrokerBETRIEB create instance tradfri
ERROR: host.ioBrokerBETRIEB error: reading io-package.json Error: ENOENT: no such file or directory, open 'null/io-package.json'
ERROR: process exited with code 20</anonymous>Hat noch jemand eine Idee ? -
Ist dein JS-Controller aktuell?
"/opt/iobroker/node_modules/.bin/npm" sollte in neueren Versionen nicht mehr existieren. Du hast zwar global eine neue npm-Version, intern wird aber anscheinend die ehemals mitgelieferte 2.x-Version verwendet.
Lösche bitte mal diese Dateien/Ordner:
/opt/iobroker/node_modules/.bin/npm /opt/iobroker/node_modules/npmund probiere es dann neu.