Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. gelöst: Javascript Adapter 5.8.8

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    gelöst: Javascript Adapter 5.8.8

    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      robbsen @Thomas Braun last edited by

      @thomas-braun

      heißt aber, die Abhängigkeiten hatten sich durch das JavaScript Update so stark verändert? Wie kommt man auf sowas 🤗

      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @robbsen last edited by

        @robbsen

        Ich weiß zufällig, das die Dependency zu coffee-script auf die richtige Bezeichnung coffeescript geändert wurde. Und das die beiden Module rebuilded werden wollten steht im Log drin. Muss man dann 'nur noch machen'

        1 Reply Last reply Reply Quote 0
        • frankthegreat
          frankthegreat @Thomas Braun last edited by

          @thomas-braun sagte in gelöst: Javascript Adapter 5.8.8:

          @robbsen sagte in Javascript Adapter 5.8.8:

          Bei npm@8:

          cd /opt/iobroker/node_modules/iobroker.javascript
          sudo -H -u iobroker npm install --omit=dev
          
          /opt/iobroker/node_modules/coffee-compiler
          sudo -H -u iobroker npm install --omit=dev
          

          Hab die gleiche Fehlermeldung wie @robbsen
          beim aktualisieren vom Javascript Adapter.

          Wären denn bei npm@6 auch diese Befehle richtig?

          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @frankthegreat last edited by Thomas Braun

            @frankthegreat sagte in gelöst: Javascript Adapter 5.8.8:

            Wären denn bei npm@6 auch diese Befehle richtig?

            Gegenfrage: Warum nicht nodejs16 inkl. npm8 verwenden? Ist eh die vorgesehene Version.

            frankthegreat 1 Reply Last reply Reply Quote 0
            • frankthegreat
              frankthegreat @Thomas Braun last edited by

              @thomas-braun Bin noch nicht soweit (Produktivsystem) 😢
              Aber wenn du sagst, das es stabil läuft werd' ich es mal angreifen?

              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @frankthegreat last edited by Thomas Braun

                @frankthegreat

                https://forum.iobroker.net/topic/55678/node-js-16-x-neue-empfehlung-für-iobroker

                In 'meinem' HowTo (s. Signatur) gibt es auch noch ein paar Tips gerade in Bezug auf node16/npm8 und dessen neuem Format für die package*-Files.

                frankthegreat 1 Reply Last reply Reply Quote 0
                • frankthegreat
                  frankthegreat @Thomas Braun last edited by

                  @thomas-braun OK, danke.
                  Mal schauen, ob ich es am WE schaffe 😎

                  1 Reply Last reply Reply Quote 0
                  • B
                    Beowolf last edited by

                    Ich habe das Problem auch

                    bei mir kommt die Meldung

                    host.raspberrypi
                    	2022-09-05 12:51:15.176	info	Rebuild for adapter system.adapter.javascript.0 not successful in 3 tries. Adapter will not be restarted again. Please execute "npm install --production" in adapter directory manually.
                    host.raspberrypi
                    	2022-09-05 12:51:15.176	error	instance system.adapter.javascript.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
                    host.raspberrypi
                    	2022-09-05 12:51:15.176	error	Caught by controller[0]: }
                    host.raspberrypi
                    	2022-09-05 12:51:15.176	error	Caught by controller[0]: requestPath: 'coffeescript'
                    host.raspberrypi
                    	2022-09-05 12:51:15.176	error	Caught by controller[0]: path: '/opt/iobroker/node_modules/iobroker.javascript/node_modules/coffeescript/package.json',
                    host.raspberrypi
                    	2022-09-05 12:51:15.175	error	Caught by controller[0]: code: 'MODULE_NOT_FOUND',
                    host.raspberrypi
                    	2022-09-05 12:51:15.175	error	Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1004:32) {
                    host.raspberrypi
                    	2022-09-05 12:51:15.175	error	Caught by controller[0]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
                    host.raspberrypi
                    	2022-09-05 12:51:15.175	error	Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1126:14)
                    host.raspberrypi
                    	2022-09-05 12:51:15.175	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:21:24)
                    host.raspberrypi
                    	2022-09-05 12:51:15.175	error	Caught by controller[0]: at require (node:internal/modules/cjs/helpers:102:18)
                    host.raspberrypi
                    	2022-09-05 12:51:15.175	error	Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1028:19)
                    host.raspberrypi
                    	2022-09-05 12:51:15.175	error	Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:804:27)
                    host.raspberrypi
                    	2022-09-05 12:51:15.174	error	Caught by controller[0]: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:942:27)
                    host.raspberrypi
                    	2022-09-05 12:51:15.174	error	Caught by controller[0]: at Function.Module._findPath (node:internal/modules/cjs/loader:577:18)
                    host.raspberrypi
                    	2022-09-05 12:51:15.174	error	Caught by controller[0]: at tryPackage (node:internal/modules/cjs/loader:364:19)
                    host.raspberrypi
                    	2022-09-05 12:51:15.174	error	Caught by controller[0]: Error: Cannot find module '/opt/iobroker/node_modules/iobroker.javascript/node_modules/coffeescript/lib/coffee-script/coffee-script'. Please verify that the package.json has a valid "main" entry
                    host.raspberrypi
                    	2022-09-05 12:51:15.174	error	Caught by controller[0]: ^
                    host.raspberrypi
                    	2022-09-05 12:51:15.174	error	Caught by controller[0]: throw err;
                    host.raspberrypi
                    	2022-09-05 12:51:15.173	error	Caught by controller[0]: node:internal/modules/cjs/loader:372
                    

                    Ich bin mir nicht sicher was ich machen soll.

                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Beowolf last edited by

                      @beowolf sagte in gelöst: Javascript Adapter 5.8.8:

                      Ich bin mir nicht sicher was ich machen soll.

                      Welcher Befehl führte zu den Ausgaben?
                      Welche nodejs-Version?

                      sudo ln -s /usr/bin/node /usr/bin/nodejs
                      uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                      

                      Welche Versionen der Adapter?

                      iobroker update -i
                      
                      B 2 Replies Last reply Reply Quote 0
                      • B
                        Beowolf @Thomas Braun last edited by

                        @thomas-braun

                        Bei

                        uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                        

                        kommt

                        pi@raspberrypi:/ $ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                        armv7l
                        /usr/bin/nodejs
                        /usr/bin/node
                        /usr/bin/npm
                        v16.17.0
                        v16.17.0
                        8.15.0
                        pi
                        /
                        OK:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
                        OK:2 http://archive.raspberrypi.org/debian bullseye InRelease
                        OK:3 https://deb.nodesource.com/node_14.x bullseye InRelease
                        OK:4 https://deb.nodesource.com/node_16.x bullseye InRelease
                        Paketlisten werden gelesen… Fertig
                        Abhängigkeitsbaum wird aufgebaut… Fertig
                        Statusinformationen werden eingelesen… Fertig
                        Alle Pakete sind aktuell.
                        nodejs:
                          Installiert:           16.17.0-deb-1nodesource1
                          Installationskandidat: 16.17.0-deb-1nodesource1
                          Versionstabelle:
                         *** 16.17.0-deb-1nodesource1 500
                                500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages
                                100 /var/lib/dpkg/status
                             14.20.0-deb-1nodesource1 500
                                500 https://deb.nodesource.com/node_14.x bullseye/main armhf Packages
                             12.22.12~dfsg-1~deb11u1 500
                                500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                        pi@raspberrypi:/ $
                        
                        

                        Bei

                        iobroker update -i
                        

                        kommt

                        pi@raspberrypi:/ $ iobroker update -i
                        Used repository: stable
                        Adapter    "admin"        : 6.2.20   , installed 6.2.20
                        Adapter    "alexa2"       : 3.11.2   , installed 3.11.2
                        Adapter    "alias-manager": 1.2.4    , installed 1.2.4
                        Adapter    "backitup"     : 2.4.10   , installed 2.4.10
                        Adapter    "discovery"    : 3.0.5    , installed 3.0.5
                        Adapter    "email"        : 1.1.3    , installed 1.1.3
                        Adapter    "hm-rega"      : 3.0.40   , installed 3.0.40
                        Adapter    "hm-rpc"       : 1.15.12  , installed 1.15.12
                        Adapter    "ical"         : 1.13.1   , installed 1.13.1
                        Adapter    "influxdb"     : 3.1.7    , installed 3.1.7
                        Adapter    "info"         : 1.9.19   , installed 1.9.19
                        Adapter    "iot"          : 1.11.8   , installed 1.11.8
                        Adapter    "iqontrol"     : 2.0.0    , installed 2.0.1
                        Adapter    "javascript"   : 6.0.0    , installed 6.0.0
                        Controller "js-controller": 4.0.23   , installed 4.0.23
                        Adapter    "luftdaten"    : 2.2.4    , installed 2.2.4
                        Adapter    "mqtt"         : 4.0.7    , installed 4.0.7
                        Adapter    "ping"         : 1.5.3    , installed 1.5.3
                        Adapter    "pushover"     : 3.0.2    , installed 3.0.2
                        Adapter    "scenes"       : 2.3.9    , installed 2.3.9
                        Adapter    "simple-api"   : 2.7.0    , installed 2.7.0
                        Adapter    "socketio"     : 4.2.0    , installed 4.2.0
                        Adapter    "sonoff"       : 2.5.1    , installed 2.5.1
                        Adapter    "vis"          : 1.4.15   , installed 1.4.15
                        Adapter    "vis-bars"     : 0.1.4    , installed 0.1.4
                        Adapter    "vis-canvas-gauges": 0.1.5, installed 0.1.5
                        Adapter    "vis-fancyswitch": 1.1.0  , installed 1.1.0
                        Adapter    "vis-history"  : 1.0.0    , installed 1.0.0
                        Adapter    "vis-hqwidgets": 1.2.0    , installed 1.2.0
                        Adapter    "web"          : 4.3.0    , installed 4.3.0
                        Adapter    "wiffi-wz"     : 2.2.1    , installed 2.2.1
                        Adapter    "wled"         : 0.6.7    , installed 0.6.7
                        Adapter    "ws"           : 1.3.0    , installed 1.3.0
                        pi@raspberrypi:/ $
                        
                        
                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • B
                          Beowolf @Thomas Braun last edited by

                          @thomas-braun sagte in gelöst: Javascript Adapter 5.8.8:

                          Welcher Befehl führte zu den Ausgaben?

                          Bei diesem

                          Please execute "npm install --production" in adapter directory manually.
                          
                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @Beowolf last edited by

                            @beowolf
                            Stell dich in dein /home-Verzeichnis. Warum steht du da in / herum?

                            cd ~
                            
                            1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @Beowolf last edited by

                              @beowolf sagte in gelöst: Javascript Adapter 5.8.8:

                              npm install --production

                              Hast du das auch in / ausgeführt?
                              Bitte IMMER vollständige Ein- und Ausgaben inkl. login prompt zeigen, dann sieht man sowas direkt.

                              B 1 Reply Last reply Reply Quote 0
                              • B
                                Beowolf @Thomas Braun last edited by

                                @thomas-braun

                                Habe es dort gemacht.

                                pi@raspberrypi:/opt/iobroker/node_modules/iobroker.javascript/node_modules $ npm install --production
                                npm WARN config production Use `--omit=dev` instead.
                                
                                > iobroker.javascript@6.0.0 postinstall
                                > node ./install/installTypings.js
                                
                                Installing NodeJS typings...
                                latest @types: 18, installed node: 16
                                
                                up to date, audited 107 packages in 12s
                                
                                9 packages are looking for funding
                                  run `npm fund` for details
                                
                                found 0 vulnerabilities
                                pi@raspberrypi:/opt/iobroker/node_modules/iobroker.javascript/node_modules $
                                
                                
                                Thomas Braun 1 Reply Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @Beowolf last edited by Thomas Braun

                                  @beowolf sagte in gelöst: Javascript Adapter 5.8.8:

                                  /opt/iobroker/node_modules/iobroker.javascript
                                  wäre richtig gewesen.

                                  cd /opt/iobroker/node_modules/iobroker.javascript
                                  npm install --omit=dev
                                  
                                  B 1 Reply Last reply Reply Quote 0
                                  • B
                                    Beowolf @Thomas Braun last edited by Beowolf

                                    @thomas-braun

                                    
                                    pi@raspberrypi:/opt/iobroker/node_modules/iobroker.javascript $ npm install --production
                                    npm WARN config production Use `--omit=dev` instead.
                                    
                                    > iobroker.javascript@6.0.0 postinstall
                                    > node ./install/installTypings.js
                                    
                                    Installing NodeJS typings...
                                    latest @types: 18, installed node: 16
                                    
                                    up to date, audited 107 packages in 11s
                                    
                                    9 packages are looking for funding
                                      run `npm fund` for details
                                    
                                    found 0 vulnerabilities
                                    pi@raspberrypi:/opt/iobroker/node_modules/iobroker.javascript $
                                    
                                    

                                    Habe ich jetzt ein Problem, weil es im falschen Ordner war?

                                    Thomas Braun 2 Replies Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @Beowolf last edited by

                                      @beowolf sagte in gelöst: Javascript Adapter 5.8.8:

                                      Habe ich jetzt ein Problem, weil es im falschen Ordner war?

                                      Gegebenenfalls später, ja.

                                      B 1 Reply Last reply Reply Quote 0
                                      • B
                                        Beowolf @Thomas Braun last edited by

                                        @thomas-braun

                                        
                                        pi@raspberrypi:/opt/iobroker/node_modules/iobroker.javascript $ npm install --omit=dev
                                        
                                        > iobroker.javascript@6.0.0 postinstall
                                        > node ./install/installTypings.js
                                        
                                        Installing NodeJS typings...
                                        latest @types: 18, installed node: 16
                                        
                                        up to date, audited 107 packages in 11s
                                        
                                        9 packages are looking for funding
                                          run `npm fund` for details
                                        
                                        found 0 vulnerabilities
                                        pi@raspberrypi:/opt/iobroker/node_modules/iobroker.javascript $
                                        
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @Beowolf last edited by

                                          @beowolf sagte in gelöst: Javascript Adapter 5.8.8:

                                          cd /opt/iobroker
                                          npm ls iobroker.javascript
                                          
                                          B 1 Reply Last reply Reply Quote 0
                                          • B
                                            Beowolf @Thomas Braun last edited by

                                            @thomas-braun

                                            pi@raspberrypi:/opt/iobroker $ npm ls iobroker.javascript
                                            iobroker.inst@3.0.0 /opt/iobroker
                                            └── iobroker.javascript@6.0.0
                                            
                                            pi@raspberrypi:/opt/iobroker $
                                            
                                            
                                            Thomas Braun 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            402
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            31
                                            1479
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo