NEWS
Iobroker updaten node und npm
-
Hallo zusammen,
Ich nutze derzeit:
Node.js: v6.14.4
NPM: 3.10.10
Und würde gerne auf:
Node.js: v8.14.0
NPM: 6.4.1
Ist das zu empfehlen?
Was ist den hier zu beachten. Wenn ich das richtig verstanden habe, muss ich bei node nochmal kompilieren.
Gibt es dazu irgendwo eijlne Anleitung dazu?
Ich habe iobroker auf dem Buanet Docker-Container laufen. Am liebsten würde ich ja den Docker Container neu ziehen, da er aktualisiert worden ist. Allerdings weiss ich nicht, wie ich dann meine gesamte Konfiguration einfach in die Neuinstallation übernehmen kann.
-
Ich habe die wichtigsten Infos hier gefunden:
http://www.iobroker.net/docu/?page_id=8 … ion_Nodejs
Sollte ich irgendwo noch vorsichtig sein oder etwas beachten? Sicherungen habe ich natürlich.
-
Anstelle rebuild.sh bitte am besten zuerst ein
npm rebuild
Im iobroker Verzeichnis Versuchen. Sollte schon reichen.
Gesendet vom Handy …
-
Super, das probiere ich. Ich gebe Rückmeldung, ob alles zu funktionieren scheint.
-
Also, ich bin jetzt auf:
Node.js: v8.14.0
NPM: 6.5.0
-
Folgende Probleme zeigt er mir noch an, nach einem npm install:
0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'audit', 'fix' ] 2 info using npm@6.5.0 3 info using node@v8.14.0 4 verbose npm-session 513f21d69399a4ee 5 verbose stack Error: Errors were found in your package-lock.json, run npm install to fix them. 5 verbose stack Invalid: lock file's iobroker.admin@3.4.7 does not satisfy iobroker.admin@^3.5.10 5 verbose stack Invalid: lock file's iobroker.discovery@1.2.1 does not satisfy iobroker.discovery@^1.2.4 5 verbose stack Missing: iobroker.fritzdect@https://github.com/foxthefox/ioBroker.fritzdect/tarball/master 5 verbose stack at lockVerify.then (/usr/lib/node_modules/npm/lib/audit.js:163:19) 5 verbose stack at <anonymous> 6 verbose cwd /opt/iobroker 7 verbose Linux 3.10.105 8 verbose argv "/usr/bin/node" "/usr/bin/npm" "audit" "fix" 9 verbose node v8.14.0 10 verbose npm v6.5.0 11 error code ELOCKVERIFY 12 error Errors were found in your package-lock.json, run npm install to fix them. 12 error Invalid: lock file's iobroker.admin@3.4.7 does not satisfy iobroker.admin@^3.5.10 12 error Invalid: lock file's iobroker.discovery@1.2.1 does not satisfy iobroker.discovery@^1.2.4 12 error Missing: iobroker.fritzdect@https://github.com/foxthefox/ioBroker.fritzdect/tarball/master 13 verbose exit [ 1, true ]</anonymous>
Sollte ich hier was unternehmen?
Desweiteren bringt er ein Fehler beim Update von Amazon Dash von 0.2.9 auf .0.3.1:
$ ./iobroker upgrade amazon-dash Update amazon-dash from @0.2.9 to @0.3.1 NPM version: 6.5.0 npm install iobroker.amazon-dash@0.3.1 --production --save --prefix "/opt/iobroker" (System call) WARNING: apt does not have a stable CLI interface. Use with caution in scripts. E: Sperrdatei /var/lib/dpkg/lock konnte nicht geöffnet werden. - open (13: Keine Berechtigung)E: Sperren des Administrationsverzeichnisses (/var/lib/dpkg/) nicht möglich, sind Sie root? gyp WARN EACCES user "undefined" does not have permission to access the dev dir "/root/.node-gyp/8.14.0"gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/pcap/.node-gyp" gyp WARN install got an error, rolling back installgyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/opt/iobroker/node_modules/pcap/.node-gyp' gyp ERR! System Linux 3.10.105 gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp ERR! cwd /opt/iobroker/node_modules/pcapgyp ERR! node -v v8.14.0 gyp ERR! node-gyp -v v3.8.0gyp ERR! not ok npm ERR! code ELIFECYCLEnpm ERR! errno 1 npm ERR! pcap@2.1.0 install: `node-gyp rebuild`npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the pcap@2.1.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in:npm ERR! /root/.npm/_logs/2018-12-18T08_48_45_502Z-debug.log ERROR: Cannot find io-package.json in null ERROR: process exited with code 10
-
Hallo,
ein npm update hat geholfen. Sollte npm update immer nor hpm install ausführen?
Gruss,
Mitch