Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. iobroker cli kaputt

    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

    iobroker cli kaputt

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

      @thomas-braun entschuldige mein Unwissen, aber erlaube bitte zwei Fragen:

      1. was ist krumm?
      2. wie ziehe ich es grade?
      Thomas Braun Homoran 2 Replies Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @Xyolyp last edited by

        @xyolyp
        Falscher Pfad.
        Steht auch in der Anleitung drin, wie man das richtet.

        1 Reply Last reply Reply Quote 1
        • Homoran
          Homoran Global Moderator Administrators @Xyolyp last edited by

          @xyolyp sagte in iobroker cli kaputt:

          was ist krumm?

          du hast zwei verschiedene node.js Installationen parallel in zwei Verzeichnissen

          X 1 Reply Last reply Reply Quote 0
          • X
            Xyolyp @Homoran last edited by

            @homoran @Thomas-Braun
            Soweit ich es jetzt deuten kann sollte alles in Ordnung sein, es sei denn ich übersehe wieder etwas. Leider scheitern weiterhin (nach einem Reboot) alle Befehle immernoch mit den gleichen Meldungen.

            $ which nodejs node npm && nodejs -v && node -v && npm -v && sudo apt update && sudo apt update && apt policy nodejs
            /usr/bin/nodejs
            /usr/bin/node
            /usr/bin/npm
            v12.22.7
            v12.22.7
            6.14.15
            Hit:1 http://security.debian.org/debian-security buster/updates InRelease
            Hit:2 http://phoscon.de/apt/deconz buster InRelease
            Hit:3 https://deb.nodesource.com/node_12.x buster InRelease
            Hit:4 https://download.docker.com/linux/debian buster InRelease
            Hit:5 http://deb.debian.org/debian buster InRelease
            Hit:6 http://deb.debian.org/debian buster-updates InRelease
            Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            All packages are up to date.
            Hit:1 http://phoscon.de/apt/deconz buster InRelease
            Hit:2 https://deb.nodesource.com/node_12.x buster InRelease
            Hit:3 https://download.docker.com/linux/debian buster InRelease
            Hit:4 http://security.debian.org/debian-security buster/updates InRelease
            Hit:5 http://deb.debian.org/debian buster InRelease
            Hit:6 http://deb.debian.org/debian buster-updates InRelease
            Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            All packages are up to date.
            nodejs:
              Installed: 12.22.7-deb-1nodesource1
              Candidate: 12.22.7-deb-1nodesource1
              Version table:
             *** 12.22.7-deb-1nodesource1 500
                    500 https://deb.nodesource.com/node_12.x buster/main amd64 Packages
                    100 /var/lib/dpkg/status
                 10.24.0~dfsg-1~deb10u1 500
                    500 http://deb.debian.org/debian buster/main amd64 Packages
                    500 http://security.debian.org/debian-security buster/updates/main amd64 Packages
            

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

              @xyolyp
              Ja, jetzt ist zumindest nodeJS sauber.

              iobroker status
              iobroker update -i
              
              X 1 Reply Last reply Reply Quote 0
              • X
                Xyolyp @Thomas Braun last edited by

                @thomas-braun

                $ iob status
                /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:37
                        .scriptName(tools.appName)
                         ^
                
                TypeError: require(...).scriptName is not a function
                    at initYargs (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:37:10)
                    at Object.module.exports.execute (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2902:20)
                    at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js:1:24)
                    at Module._compile (internal/modules/cjs/loader.js:999:30)
                    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
                    at Module.load (internal/modules/cjs/loader.js:863:32)
                    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
                    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
                    at internal/main/run_main_module.js:17:47
                
                $ iob update -i
                /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:37
                        .scriptName(tools.appName)
                         ^
                
                TypeError: require(...).scriptName is not a function
                    at initYargs (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:37:10)
                    at Object.module.exports.execute (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2902:20)
                    at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js:1:24)
                    at Module._compile (internal/modules/cjs/loader.js:999:30)
                    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
                    at Module.load (internal/modules/cjs/loader.js:863:32)
                    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
                    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
                    at internal/main/run_main_module.js:17:47
                
                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @Xyolyp last edited by

                  @xyolyp

                  iobroker stop
                  cd /opt/iobroker
                  sudo -H -u iobroker npm install iobroker.js-controller
                  
                  X 1 Reply Last reply Reply Quote 0
                  • X
                    Xyolyp @Thomas Braun last edited by

                    @thomas-braun

                    $ sudo -H -u iobroker npm install ioboker.js-controller
                    npm ERR! code E404
                    npm ERR! 404 Not Found - GET https://registry.npmjs.org/ioboker.js-controller - Not found
                    npm ERR! 404
                    npm ERR! 404  'ioboker.js-controller@latest' is not in the npm registry.
                    npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
                    npm ERR! 404
                    npm ERR! 404 Note that you can also install from a
                    npm ERR! 404 tarball, folder, http url, or git url.
                    
                    npm ERR! A complete log of this run can be found in:
                    npm ERR!     /home/iobroker/.npm/_logs/2021-11-17T22_53_25_614Z-debug.log
                    
                    Thomas Braun M 2 Replies Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Xyolyp last edited by

                      @xyolyp

                      Hm.
                      Netzwerk in Ordnung?

                      curl -sL https://iobroker.net/fix.sh | bash -
                      
                      1 Reply Last reply Reply Quote 0
                      • M
                        mrjeschke @Xyolyp last edited by

                        @xyolyp
                        Da fehlt ein r im iobroker

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

                          @maik-0
                          Oh, gut gesehen...

                          Die Befehle zu kopieren statt abzutippen ist auch keine doofe Idee .

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

                            @thomas-braun @Maik-0 @Homoran danke euch drei, es sieht so aus als würde es wieder laufen.
                            Die Alternative wäre ein neues Setup als Docker-Container am Wochenende gewesen.

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

                              @xyolyp

                              iobroker update -i
                              

                              sagt jetzt?

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post

                              Support us

                              ioBroker
                              Community Adapters
                              Donate

                              911
                              Online

                              31.9k
                              Users

                              80.1k
                              Topics

                              1.3m
                              Posts

                              cli js-controller
                              4
                              19
                              653
                              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