NEWS
SOLVED Problem bei nodejs upgrade
-
Hallo Zusammen,
ich wollte heute die nodejs v.6.x auf v.8. upgraden.
Verwendet habe ich folgende Anleitung: klick
Die neue Version wurde auch erfolgreich installiert.
Leider crashed es beim Kompilieren der bereits installierten Adapter, also beinpm rebuild
Hier fliegt er raus:
^ In file included from ../src/poller.cpp:1:0: ../../nan/nan.h:1674:3: note: declared here Call(int argc, v8::Local<v8::Value> argv[]) const { ^~~~ npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.3 (node_modules/osx-temperature-sensor): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm64"}) npm install iobroker.admin --production --prefix /opt/iobroker sh: 0: getcwd() failed: No such file or directory path.js:1165 path = process.cwd(); ^ Error: ENOENT: no such file or directory, uv_cwd at Object.resolve (path.js:1165:24) at Function.Module._resolveLookupPaths (module.js:424:17) at Function.Module._resolveFilename (module.js:542:20) at Function.Module._load (module.js:475:25) at Module.require (module.js:597:17) at require (internal/module.js:11:18) at /usr/lib/node_modules/npm/bin/npm-cli.js:19:21 at Object.<anonymous> (/usr/lib/node_modules/npm/bin/npm-cli.js:153:3) at Module._compile (module.js:653:30) at Object.Module._extensions..js (module.js:664:10) npm install iobroker.js-controller --production --prefix /opt/iobroker sh: 0: getcwd() failed: No such file or directory path.js:1165 path = process.cwd(); ^ Error: ENOENT: no such file or directory, uv_cwd at Object.resolve (path.js:1165:24) at Function.Module._resolveLookupPaths (module.js:424:17) at Function.Module._resolveFilename (module.js:542:20) at Function.Module._load (module.js:475:25) at Module.require (module.js:597:17) at require (internal/module.js:11:18) at /usr/lib/node_modules/npm/bin/npm-cli.js:19:21 at Object.<anonymous> (/usr/lib/node_modules/npm/bin/npm-cli.js:153:3) at Module._compile (module.js:653:30) at Object.Module._extensions..js (module.js:664:10) Could not find "/opt/iobroker/node_modules/iobroker/lib/../../iobroker.js-controller/conf/iobroker-dist.json". Possible iobroker.js-controller was not installed Non-critical error: ENOENT: no such file or directory, mkdir '/opt/iobroker/node_modules/iobroker/lib/../../../log' npm ERR! path /opt/iobroker/node_modules/yargs/package.json npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall open npm ERR! enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/yargs/package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-05-11T12_12_34_461Z-debug.log root@ioBroker-Rock64:/opt/iobroker#
System: Rock64
Könnt ihr mir dabei weiterhelfen?
Gruß Smartuser
-
@Homoran
Danke für die Rückmeldung.
Ich glaube der Fehler lag darin, dass nach dem system reboot iobroker erneut gestopt werden muss.
Ein erneutes Starten vonnpm rebuild
ohne laufende iobroker instanze lief ohne probleme durch.
Danke!
Gruß
Smartuser -
@Smartuser sagte in Problem bei nodejs upgrade:
Verwendet habe ich folgende Anleitung: klick
Wann wurde installiert?
Ggf. Mit dem fixer bearbeitet?
-
@Homoran
Danke für die Rückmeldung.
Ich glaube der Fehler lag darin, dass nach dem system reboot iobroker erneut gestopt werden muss.
Ein erneutes Starten vonnpm rebuild
ohne laufende iobroker instanze lief ohne probleme durch.
Danke!
Gruß
Smartuser