NEWS
Problem mit der Installation eines Custom Adapters
-
Hallo an Alle,
Ich habe mir ein Custom Adapter für IOBroker gebastelt um die Solar Daten meiner Solaranlage abzulesen. Funktioniert auch alles Prima.
Ich wollte jetzt alles auf ein schnelleren Server installieren und es klappt nicht mehr.
Alter Server:
Ubuntu 16.04
npm: '2.15.11',
ares: '1.10.1-DEV',
http_parser: '2.5.0',
icu: '55.1',
modules: '46',
node: '4.2.6',
openssl: '1.0.2g-fips',
uv: '1.8.0',
v8: '4.5.103.35',
zlib: '1.2.8' }
Neuer Server
Ubuntu 16.04
npm: '2.15.12',
ares: '1.10.1-DEV',
http_parser: '2.5.0',
icu: '55.1',
modules: '46',
node: '4.2.6',
openssl: '1.0.2g-fips',
uv: '1.8.0',
v8: '4.5.103.35',
zlib: '1.2.8' }
Fehlermeldung
<size size="85"><size size="85">__npm ERR! Linux 4.4.0-77-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/local/bin/npm" "install" "iobroker.epsolar @0.0.1"
npm ERR! node v4.2.6
npm ERR! npm v2.15.12
npm ERR! Cannot read property 'latest' of undefined
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /opt/iobroker/npm-debug.log
root@zotac:/opt/iobroker# npm install iobroker.epsolar@0.0.1
npm ERR! Linux 4.4.0-77-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/local/bin/npm" "install" "iobroker.epsolar@0.0.1"
npm ERR! node v4.2.6
npm ERR! npm v2.15.12
npm ERR! Cannot read property 'latest' of undefined
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /opt/iobroker/npm-debug.log__</size></size>
nach der Instalation wird npm Version 3.5.0 installiert. Auch mit dieser Version kommt dieselbe Fehlermeldung
Die instalation von IoBroker habe ich so Durchgeführt:
$ sudo apt install nodejs npm
$ ln -s /usr/bin/nodejs /usr/bin/node
$ cd /opt
$ mkdir iobroker
$ chmod 777 iobroker
$ cd iobroker
$ npm install –unsafe-perm iobroker
Kann mir Jemand weiterhelfen?
-
Hi,
npm: '2.15.12',
node: '4.2.6', `
Node nicht mehr wirklich aktuell … ich habe die node-Verion 4.8.3 drauf.Die instalation von IoBroker habe ich so Durchgeführt `
Folge mal unserer Installations-Doku. Da ist auch die npm/Node-Installation beschrieben : http://www.iobroker.net/?page_id=5106&lang=deGruß,
Eric
Von unterwegs getippert
-
Kann man dein Code irgendwo anschauen? Ich denke es ist was mit package.json
Und was steht in /opt/iobroker/npm-debug.log ?