NEWS
I[GELÖST] oBroker rpc Adapter Nodejs Version ?
-
Hallo Bluefox,
geadre eben habe ich den rpx adapter updaten wollen und im Anschluss daran auch nodererd 0.5.0 . Aber jetzt bekam ich die folgende Fehlermeldung.
$ ./iobroker upgrade hm-rpc npm install iobroker.hm-rpc --production --prefix "/opt/iobroker" (System call) npm WARN unmet dependency /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/serialport/node_modules/node-pre-gyp requires nopt@'~2.2.0' but will load npm WARN unmet dependency /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/nopt,npm WARN unmet dependency which is version 3.0.1 ERROR: /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:1460 var count = adapters.length; ^ TypeError: Cannot read property 'length' of null at enableAdapters (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:1460:25) at ChildProcess. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:1566:21) at ChildProcess.emit (events.js:110:17) at Process.ChildProcess._handle.onexit (child_process.js:1067:12) ERROR: process exited with code 1</anonymous>
Irgendwie sieht es für mih nach einem Fehler in der Version von Node aus. Ich weiss es aber nicht.
Kannst Du dazu irgendetwas sagen?
Und mal davon abgesehen. Nodejs hat ja nun schon seit langer Zeit ein neueres Release (0.12.3). Gibt es schon Pläne mit dem ioBroker da nachzuziehen? Und wenn nein, was ist denn Deiner Meinung nach das optimalste Paket nach derzeitigem Stand?
Herzliche Grüße
Bernhard
-
Hallo Bernhard,
Worauf läuft denn dein iobroker?
Ich habe zuletzt mit einer neueren Version auf dem raspi2 versucht, da funktionierte nicht mal npm.
Das war damals auch bei ccu.io auf nicht Raspi Arm devices so. Da hat sich die 0.10.22 als vernünftigste erwiesen.
Gruß
Rainer
Gesendet von meinem Cynus T7 mit Tapatalk
-
Hallo Rainer,
ioBroker läuftderzeit, nach etlichen Tests auf Bananapi, Raspi, windows etc jetzt auf meiner Synology 1812+. Eigentlich bringt die ein Paket nodejs zum zusätzlichen installieren mit. Ganz einfach und über die Administrationsoberfläche. Ist aber leider 12.0. Auch das Paket der Synocommunity ist leider noch höher (12.006)
Heißt, ich muss das über die Shell und manuell machen.
Jetzt sehe ich ab und an mal Meldungen bei Updates oder Installs, die mich darauf hinweisen, dass eine Version max <12.0 erforderlich sei.
11.99 funktioniert aber definitiv ebenfalls nicht.
Klar kann ich jetzt die 10.22 installieren. Ich würde aber schon aus eigenem Interesse wissen, was denn derzeit die höchstmögliche Version ist, die funktioniert. Von der HW Plattform sollte das ja nicht abhängig sein. Oder täusche ich mich da?
Und ebenfalls aus Interesse, was derzeit verhindert, dass man auf die aktuellste Version updaten kann. Meistens ergeben sich aus so etwas ja auch Performanceverbesserungen etc.
Gruß
Bernhard
-
Hallo Bernhard,
ich habe eine 1511+. Muss ich da auch mal probieren.
Kann sein, dass es auf der synology mit der nodejs Version funktioniert.
Die Fehlermeldung hatte ich gestern auch. Muss nichts mit der nodejs Version zu tun haben IMHO wird da node-red angemeckert.
Ich kann den Fehler leider nicht genau zuordnen, weil ich Dämel auf der Konsole den download der neuen icons gestartet hatte und während der noch lief, node-red über die webUI upgedated hatte.
Gruß
Rainer
-
Hallo Rainer,
11.99 funktioniert aber definitiv ebenfalls nicht.
Klar kann ich jetzt die 10.22 installieren. Ich würde aber schon aus eigenem Interesse wissen, was denn derzeit die höchstmögliche Version ist, die funktioniert. Von der HW Plattform sollte das ja nicht abhängig sein. Oder täusche ich mich da?
Und ebenfalls aus Interesse, was derzeit verhindert, dass man auf die aktuellste Version updaten kann. Meistens ergeben sich aus so etwas ja auch Performanceverbesserungen etc. `
Laut https://github.com/node-red/node-red/bl … ckage.jsonsteht da
"engines": { "node": ">=0.8 <0.12" }
D.h. 11.99 nicht, aber v0.11.16 (letzte aus 0.11) vielleicht doch.
-
Hallo Bluefox,
also natürlich hast Du recht. die höchste Nummer ist natürlich die 0.11.16 . Ich verbuche das mal unter typisch linux noobs .
:oops:
Das werd ich wohl nie lernen.
Aber mal abgesehen avon in ich jetzt auf 0.11.16 und es bietet sich mir bei der Instllation von node-red ein bild des Schreckens
! $ ./iobroker add node-red
! npm install iobroker.node-red –production --prefix "/opt/iobroker" (System call)
! child_process: customFds option is deprecated, use stdio instead.
! gyp
! ERR!
! build error
! gyp
! ERR! stack Error: not found: makegyp ERR!
! stack at F (/opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/which/which.js:38:28)gyp ERR! stack at E (/opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/which/which.js:41:29)
! gyp ERR! stack at /opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/which/which.js:52:16
! gyp ERR! stack at FSReqWrap.oncomplete (fs.js:99:15)
! gyp ERR! System Linux 3.10.35gyp ERR! command "node" "/opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
! gyp
! ERR!
! cwd /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/irc/node_modules/node-icu-charset-detectorgyp ERR! node -v v0.11.16
! gyp ERR!
! node-gyp -v
! v1.0.2gyp ERR! not ok
! child_process: customFds option is deprecated, use stdio instead.
! gyp
! ERR! build error
! gyp
! ERR!
! stack Error: not found: makegyp
! ERR!
! stack
! at F (/opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/which/which.js:38:28)gyp ERR! stack at E (/opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/which/which.js:41:29)
! gyp ERR! stack at /opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/which/which.js:52:16
! gyp ERR! stack at FSReqWrap.oncomplete (fs.js:99:15)
! gyp ERR! System Linux 3.10.35
! gyp ERR! command "node" "/opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp ERR! cwd
! /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/bcryptgyp ERR! node -v v0.11.16
! gyp ERR! node-gyp -v v1.0.2
! gyp ERR! not ok
! npm
! WARN
! optional dep failed, continuing node-icu-charset-detector@0.0.7
! child_process: customFds option is deprecated, use stdio instead.gyp ERR! build error
! gyp ERR! stack Error: not found: make
! gyp ERR! stack at F (/opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/which/which.js:38:28)
! gyp ERR! stack at E (/opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/which/which.js:41:29)
! gyp ERR! stack at /opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/which/which.js:52:16
! gyp ERR! stack at FSReqWrap.oncomplete (fs.js:99:15)
! gyp ERR! System Linux 3.10.35
! gyp ERR! command "node" "/opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
! gyp ERR! cwd /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/ws/node_modules/bufferutil
! gyp ERR! node -v v0.11.16
! gyp ERR! node-gyp -v v1.0.2
! gyp ERR! not ok
! npm WARN optional dep failed, continuing bcrypt@0.8.1
! child_process: customFds option is deprecated, use stdio instead.
! gyp
! ERR!
! build error
! gyp ERR! stack Error: not found: makegyp ERR!
! stack at F (/opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/which/which.js:38:28)gyp ERR! stack at E (/opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/which/which.js:41:29)
! gyp ERR! stack at /opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/which/which.js:52:16
! gyp ERR! stack at FSReqWrap.oncomplete (fs.js:99:15)
! gyp ERR!
! System Linux 3.10.35gyp ERR!
! command
! "node" "/opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp ERR! cwd /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/ws/node_modules/utf-8-validate
! gyp ERR! node -v v0.11.16
! gyp ERR!
! node-gyp -v v1.0.2gyp ERR! not ok
! npm WARN optional dep failed, continuing bufferutil@1.0.1
! child_process: customFds option is deprecated, use stdio instead.
! gyp
! ERR!
! build error
! gyp
! ERR! stack Error: not found: make
! gyp ERR! stack at F (/opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/which/which.js:38:28)gyp
! ERR! stack at E (/opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/which/which.js:41:29)
! gyp ERR! stack at /opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/which/which.js:52:16gyp ERR! stack
! at FSReqWrap.oncomplete (fs.js:99:15)gyp ERR!
! System Linux 3.10.35
! gyp
! ERR! command "/opt/node-v0.11.16-linux-x86/bin/node" "/opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/opt/iobroker/node_modules/iobroker.node-red/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/node_modules/bson-ext/build/Release/bson.node" "--module_name=bson" "--module_path=/opt/iobroker/node_modules/iobroker.node-red/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/node_modules/bson-ext/build/Release"gyp ERR! cwd /opt/iobroker/node_modules/iobroker.node-red/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/node_modules/bson-ext
! gyp ERR!
! node -v v0.11.16gyp ERR! node-gyp -v v1.0.2
! gyp ERR! not ok
! node-pre-gyp
! ERR!
! build error
! node-pre-gyp
! ERR! stack Error: Failed to execute '/opt/node-v0.11.16-linux-x86/bin/node /opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/opt/iobroker/node_modules/iobroker.node-red/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/node_modules/bson-ext/build/Release/bson.node --module_name=bson --module_path=/opt/iobroker/node_modules/iobroker.node-red/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/node_modules/bson-ext/build/Release' (1)
! node-pre-gyp
! ERR! stack at ChildProcess. <anonymous>(/opt/iobroker/node_modules/iobroker.node-red/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/node_modules/bson-ext/node_modules/node-pre-gyp/lib/util/compile.js:83:29)node-pre-gyp
! ERR! stack at ChildProcess.emit (events.js:110:17)node-pre-gyp ERR! stack at maybeClose (child_process.js:1008:16)
! node-pre-gyp ERR!
! stack at Process.ChildProcess._handle.onexit (child_process.js:1080:5)node-pre-gyp ERR! System Linux 3.10.35
! node-pre-gyp ERR! command "node" "/opt/iobroker/node_modules/iobroker.node-red/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/node_modules/bson-ext/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"node-pre-gyp ERR! cwd /opt/iobroker/node_modules/iobroker.node-red/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/node_modules/bson-ext
! node-pre-gyp ERR! node -v v0.11.16
! node-pre-gyp ERR! node-pre-gyp -v v0.6.4node-pre-gyp ERR! not ok
! npm
! WARN optional dep failed, continuing utf-8-validate@1.0.1
! child_process: customFds option is deprecated, use stdio instead.
! gyp
! ERR!
! build error
! gyp ERR! stack Error: not found: makegyp ERR! stack at F (/opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/which/which.js:38:28)
! gyp ERR! stack at E (/opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/which/which.js:41:29)
! gyp ERR! stack at /opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/which/which.js:52:16
! gyp ERR! stack at FSReqWrap.oncomplete (fs.js:99:15)
! gyp ERR!
! System Linux 3.10.35gyp ERR! command
! "node" "/opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp ERR! cwd /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/irc/node_modules/iconv
! gyp
! ERR!
! node -v v0.11.16gyp ERR! node-gyp -v v1.0.2
! gyp ERR! not ok
! [serialport] Command failed: /opt/node-v0.11.16-linux-x86/bin/node –eval require('/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/serialport/build/serialport/v1.4.10/Release/node-v14-linux-ia32/serialport.node')module.js:355
! Module._extensions[extension](this, filename);
! ^
! Error: /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/serialport/build/serialport/v1.4.10/Release/node-v14-linux-ia32/serialport.node: undefined symbol: _ZN2v86Object3SetENS_6HandleINS_5ValueEEES3_NS_17PropertyAttributeE
! at Error (native)
! at Module.load (module.js:355:32)
! at Function.Module._load (module.js:310:12)
! at Module.require (module.js:365:17)
! at require (module.js:384:17)
! at [eval]:1:1
! at Object.exports.runInThisContext (vm.js:74:17)
! at Object. <anonymous>([eval]-wrapper:6:22)
! at Module._compile (module.js:460:26)
! at evalScript (node.js:431:25)
! node-pre-gyp
! ERR!
! Testing pre-built binary failed, attempting to source compile
! child_process: customFds option is deprecated, use stdio instead.
! child_process: customFds option is deprecated, use stdio instead.
! gyp
! ERR!
! build error
! gyp ERR! stack Error: not found: make
! gyp ERR!
! stack at F (/opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/which/which.js:38:28)
! gyp ERR!
! stack at E (/opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/which/which.js:41:29)
! gyp ERR!
! stack at /opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/which/which.js:52:16gyp ERR! stack at FSReqWrap.oncomplete (fs.js:99:15)
! gyp ERR! System Linux 3.10.35
! gyp ERR! command "/opt/node-v0.11.16-linux-x86/bin/node" "/opt/node-v0.11.16-linux-x86/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "–name=serialport" "--configuration=Release" "--module_name=serialport" "--version=1.4.10" "--major=1" "--minor=4" "--patch=10" "--runtime=node" "--node_abi=node-v14" "--platform=linux" "--target_platform=linux" "--arch=ia32" "--target_arch=ia32" "--module_main=./serialport" "--host=https://node-serialport.s3.amazonaws.com/" "--module_path=/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/serialport/build/serialport/v1.4.10/Release/node-v14-linux-ia32" "--remote_path=./serialport/v1.4.10/Release/" "--package_name=node-v14-linux-ia32.tar.gz" "--staged_tarball=build/stage/serialport/v1.4.10/Release/node-v14-linux-ia32.tar.gz" "--hosted_path=https://node-serialport.s3.amazonaws.co ... 0/Release/" "--hosted_tarball=https://node-serialport.s3.amazonaws.co ... a32.tar.gz"
! gyp ERR! cwd /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/serialport
! gyp ERR! node -v v0.11.16
! gyp ERR! node-gyp -v v1.0.2
! gyp ERR! not ok
! node-pre-gyp ERR! build error
! node-pre-gyp ERR! stack Error: Failed to execute '/opt/node-v0.11.16-linux-x86/bin/node rebuild --name=serialport --configuration=Release --module_name=serialport --version=1.4.10 --major=1 --minor=4 --patch=10 --runtime=node --node_abi=node-v14 --platform=linux --target_platform=linux --arch=ia32 --target_arch=ia32 --module_main=./serialport --host=https://node-serialport.s3.amazonaws.com/ --module_path=/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/serialport/build/serialport/v1.4.10/Release/node-v14-linux-ia32 --remote_path=./serialport/v1.4.10/Release/ --package_name=node-v14-linux-ia32.tar.gz --staged_tarball=build/stage/serialport/v1.4.10/Release/node-v14-linux-ia32.tar.gz --hosted_path=https://node-serialport.s3.amazonaws.co ... 0/Release/ --hosted_tarball=https://node-serialport.s3.amazonaws.co ... a32.tar.gz' (1)
! node-pre-gyp ERR! stack at ChildProcess. <anonymous>(/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:76:29)node-pre-gyp ERR! stack at ChildProcess.emit (events.js:110:17)
! node-pre-gyp ERR! stack at maybeClose (child_process.js:1008:16)
! node-pre-gyp ERR!
! stack at Process.ChildProcess._handle.onexit (child_process.js:1080:5)
! node-pre-gyp ERR! System Linux 3.10.35node-pre-gyp ERR! command "node" "/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
! node-pre-gyp ERR! cwd /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/serialport
! node-pre-gyp ERR! node -v v0.11.16
! node-pre-gyp ERR! node-pre-gyp -v v0.5.19
! node-pre-gyp ERR! not ok
! npm WARN optional dep failed, continuing iconv@2.1.7
! npm ERR! Linux 3.10.35npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.node-red" "--production" "--prefix" "/opt/iobroker"
! npm ERR! node v0.11.16
! npm ERR! npm v2.3.0npm ERR! code ELIFECYCLE
! npm ERR! serialport@1.4.10 install:node-pre-gyp install --fallback-to-build
! npm ERR! Exit status 1
! npm ERR!
! npm
! ERR! Failed at the serialport@1.4.10 install script 'node-pre-gyp install --fallback-to-build'.npm ERR! This is most likely a problem with the serialport package,
! npm ERR! not with npm itself.
! npm ERR! Tell the author that this fails on your system:
! npm ERR! node-pre-gyp install --fallback-to-build
! npm ERR! You can get their info via:
! npm ERR! npm owner ls serialport
! npm ERR!
! There is likely additional logging output above.
! npm ERR! Please include the following file with any support request:npm ERR! /opt/npm-debug.log
! Cannot install iobroker.node-red: 1
! ERROR: process exited with code 25</anonymous></anonymous></anonymous>ZUm Ablauf:
ich habe das node node-.tar.gz nach /opt kopiert
tar …
und dann cd /node../bin
und dann node und npm per ln -s ... nach /usr/bin verlinkt.
Ist doch soweit richtig, oder ?
fehlt noch irgendetwas ?
Was kann mir da helfen ?
Wo liegt mein Fehler?
Gruß
Bernhard
-
Hallo Rainer,
Hallo Bluefox
never change a running team,
das wird meine Motto des Tages!
ich habe jetzt also letztlich 0.10.22 installiert und siehe da, es wuppt alles wieder.
Ein paar altbekannte WARN ings, die wir ja alle geflissentlich gelernt haben zu übersehen ;-). Aber am Ende steht wieder ein exit Code 0 !!
So habe ich jetzt wenigstens etwas über den Austausch von Binaries gelern.
War ja auch mal nützlich. Jetzt kann ich wieder an die Oberfläche gehen.
Vielen Dank an Euch beide
man schreibt sich
Gruß
Bernhard