Coder Social home page Coder Social logo

Comments (5)

data2000 avatar data2000 commented on June 19, 2024 1

Herzlichen Dank Schmakus.
Ich habe eine Lösung gefunden, indem ich im Adapterverzeichnis

cd /opt/iobroker/node_modules/iobroker.doorbird/
sudo npm install --production

ausführte.
Dabei zeigte er mir auch an, dass eine neue Node Version verfügbar wäre (v9.8.1), welche ich auch gleich installierte.
Also so...

sudo npm install -g [email protected]
sudo npm install --production

Das klappte auch beim Web Adapter.

Jetzt läuft alles wieder.
Nun kann dieser Issue auf jeden Fall geschlossen werden.
Vielen Dank für Deine Hilfe.

from iobroker.doorbird.

Schmakus avatar Schmakus commented on June 19, 2024

Deine npm version passt nicht zur node version!
node v18.x ist npm 9.x! (Bei dir noch npm 6.x)!!!

Fazit: Aktualisiere bitte deine Versionen von NPM und Node.js.
https://forum.iobroker.net/topic/64032/update-nodejs-best-practise-supported-16-und-18

from iobroker.doorbird.

data2000 avatar data2000 commented on June 19, 2024

Vielen Dank. Da passten noch Links unter /usr/bin und /usr/local/bin nicht. Ich habe node noch einmal komplett neu installiert.
NPM und NPX sind nun V9.6.1

Doorbird startet aber leider noch immer nicht.

Allerdings nehme ich an, dass das nichts mit dem Adapter direkt zu tun hat, da ich das selbe Fehlerbild auch beim web Adapter habe.
An dieser Stelle würde ich das Issue daher wieder schließen. Für Tipps wäre ich aber dennoch dankbar.

host.Rpi4 2023-08-07 15:09:26.134 error instance system.adapter.doorbird.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
host.Rpi4 2023-08-07 15:09:26.134 error Caught by controller[0]: Node.js v18.17.0
host.Rpi4 2023-08-07 15:09:26.133 error Caught by controller[0]: }
host.Rpi4 2023-08-07 15:09:26.133 error Caught by controller[0]: ]
host.Rpi4 2023-08-07 15:09:26.133 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.doorbird/main.js'
host.Rpi4 2023-08-07 15:09:26.133 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.doorbird/node_modules/@iobroker/adapter-core/build/index.js',
host.Rpi4 2023-08-07 15:09:26.133 error Caught by controller[0]: requireStack: [
host.Rpi4 2023-08-07 15:09:26.133 error Caught by controller[0]: code: 'MODULE_NOT_FOUND',
host.Rpi4 2023-08-07 15:09:26.133 error Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1143:19) {
host.Rpi4 2023-08-07 15:09:26.132 error Caught by controller[0]: at Module._load (node:internal/modules/cjs/loader:960:12)
host.Rpi4 2023-08-07 15:09:26.132 error Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1119:32)
host.Rpi4 2023-08-07 15:09:26.132 error Caught by controller[0]: at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
host.Rpi4 2023-08-07 15:09:26.132 error Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1256:14)
host.Rpi4 2023-08-07 15:09:26.132 error Caught by controller[0]: at Object. (/opt/iobroker/node_modules/iobroker.doorbird/node_modules/@iobroker/adapter-core/build/index.js:21:1)
host.Rpi4 2023-08-07 15:09:26.132 error Caught by controller[0]: at require (node:internal/modules/cjs/helpers:110:18)
host.Rpi4 2023-08-07 15:09:26.132 error Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1143:19)
host.Rpi4 2023-08-07 15:09:26.131 error Caught by controller[0]: at Module._load (node:internal/modules/cjs/loader:922:27)
host.Rpi4 2023-08-07 15:09:26.131 error Caught by controller[0]: at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
host.Rpi4 2023-08-07 15:09:26.131 error Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.doorbird/main.js
host.Rpi4 2023-08-07 15:09:26.131 error Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.doorbird/node_modules/@iobroker/adapter-core/build/index.js
host.Rpi4 2023-08-07 15:09:26.131 error Caught by controller[0]: Require stack:
host.Rpi4 2023-08-07 15:09:26.131 error Caught by controller[0]: Error: Cannot find module '@iobroker/types'
host.Rpi4 2023-08-07 15:09:26.130 error Caught by controller[0]: ^
host.Rpi4 2023-08-07 15:09:26.130 error Caught by controller[0]: throw err;
host.Rpi4 2023-08-07 15:09:26.130 error Caught by controller[0]: node:internal/modules/cjs/loader:1080

from iobroker.doorbird.

Schmakus avatar Schmakus commented on June 19, 2024

Welche js-controller Version hast du?
Evtl. liegt es an der adapter core Version.
Bitte mal den Adapter downgraden

from iobroker.doorbird.

Schmakus avatar Schmakus commented on June 19, 2024

Also. Das Problem wird NPM 6 zum Zeitpunkt der Updates gewesen sein.
Da nun npm 9 drauf hast, musst die Adapter ganz löschen und neu installieren.

from iobroker.doorbird.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.