Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Ich kann nichts mehr installieren / updaten

    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

    Ich kann nichts mehr installieren / updaten

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

      @fiso sagte in Ich kann nichts mehr installieren / updaten:

      NPM ist auch auf Version 8.17^^

      Was nicht die passende Version ist. Scheinst aber insgesamt ja gerne irgendwie wild herumzufrickeln.

      1 Reply Last reply Reply Quote 0
      • F
        FISO last edited by

        @thomas-braun normal nein, mein Motto lautet eigentlich "Never change a running system". Der Auslöser war halt das gestrige Ereignis.....

        wäre node 16 nicht empfohlen worden damals, wäre ich heute noch auf 14. Aber da gabs doch massive Probleme...... deswegen wurde doch npm 8.x und node 16 als standard vom iobroker team gesetzt.

        Thomas Braun Homoran 3 Replies Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @FISO last edited by

          @fiso

          Und warum installierst du dann nodejs und npm nicht ordentlich?

          Version 	   Date 	V8 	        npm
          Node.js 18.7.0 	   2022-07-26 	10.2.154.13 	8.15.0 	
          Node.js 16.17.0    2022-08-16 	9.4.146.26 	8.15.0
          
          1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @FISO last edited by

            @fiso sagte in Ich kann nichts mehr installieren / updaten:

            mein Motto lautet eigentlich "Never change a running system".

            Das ist ja auch kein Motto, das ist Blödsinn.

            reindeer-web 1 Reply Last reply Reply Quote 1
            • Homoran
              Homoran Global Moderator Administrators @FISO last edited by

              @fiso sagte in Ich kann nichts mehr installieren / updaten:

              @thomas-braun normal nein, mein Motto lautet eigentlich "Never change a running system". Der Auslöser war halt das gestrige Ereignis.....

              wäre node 16 nicht empfohlen worden damals, wäre ich heute noch auf 14. Aber da gabs doch massive Probleme...... deswegen wurde doch npm 8.x und node 16 als standard vom iobroker team gesetzt.

              äääähhhhhmmmm.
              Step by step!
              deine jetzigen Probleme kommen von dem Blödsinn mit never change.... . irgendwann werden die Sprünge so groß dass es zu Problemen kommt. Ständig up to date wäre einfacher

              npm 8.17 gehört zu node 18. Damit kannst du dir schon wieder Probleme einhandeln. Insbesondere je nachdem wie du es installiert hast.

              wo gab es Probleme mit node 14?
              wahrscheinlich auch nur mit nicht passendem npm

              Die Entwicklung geht immer weiter, irgendwann wirdxauch node 18, dann node 20 empfohlen werden.
              Diese Empfehlung kann aber erst dann ausgesprochen werden, wenn iobroker daran angepasst wurde

              F 1 Reply Last reply Reply Quote 1
              • F
                FISO @Homoran last edited by

                pi@iobroker-master:~ $ npm -v
                8.15.0
                

                so, sollte nun passen 😉

                1 Reply Last reply Reply Quote 0
                • reindeer-web
                  reindeer-web @Thomas Braun last edited by

                  @thomas-braun
                  Kannst du mir vielleicht bei der Behebung dieser Fehler behilflich sein?

                  root@iobroker:/opt/iobroker# npm -v
                  8.18.0
                  root@iobroker:/opt/iobroker# npm ls | grep -E 'github.com|ERR'
                  ├── iobroker.fully-tablet-control@0.3.6-1 (git+ssh://git@github.com/xXBJXx/ioBroker.fully-tablet-control.git#8e2b16fdbe6bc210ecc7a6ed2aa648bc12af6ab8)
                  ├── iobroker.homepilot20@0.0.32 (git+ssh://git@github.com/homecineplexx/ioBroker.homepilot20.git#a56acd4b7a5b2498201de8a2b6976e8f0e49de1b)
                  npm ERR! code ELSPROBLEMS
                  npm ERR! extraneous: array.prototype.findindex@2.2.0 /opt/iobroker/node_modules/array.prototype.findindex
                  npm ERR! extraneous: buffer-shims@1.0.0 /opt/iobroker/node_modules/buffer-shims
                  npm ERR! extraneous: cli@0.4.5 /opt/iobroker/node_modules/cli
                  npm ERR! extraneous: cliff@0.1.10 /opt/iobroker/node_modules/cliff
                  npm ERR! extraneous: decimal.js@10.4.0 /opt/iobroker/node_modules/decimal.js
                  npm ERR! extraneous: es-abstract@1.20.1 /opt/iobroker/node_modules/es-abstract
                  npm ERR! extraneous: es-shim-unscopables@1.0.0 /opt/iobroker/node_modules/es-shim-unscopables
                  npm ERR! extraneous: es-to-primitive@1.2.1 /opt/iobroker/node_modules/es-to-primitive
                  npm ERR! extraneous: eventemitter3@3.1.2 /opt/iobroker/node_modules/eventemitter3
                  npm ERR! extraneous: file-type@3.9.0 /opt/iobroker/node_modules/file-type
                  npm ERR! extraneous: function.prototype.name@1.1.5 /opt/iobroker/node_modules/function.prototype.name
                  npm ERR! extraneous: functions-have-names@1.2.3 /opt/iobroker/node_modules/functions-have-names
                  npm ERR! extraneous: futoin-hkdf@1.4.3 /opt/iobroker/node_modules/futoin-hkdf
                  npm ERR! extraneous: get-symbol-description@1.0.0 /opt/iobroker/node_modules/get-symbol-description
                  npm ERR! extraneous: has-bigints@1.0.2 /opt/iobroker/node_modules/has-bigints
                  npm ERR! extraneous: has-property-descriptors@1.0.0 /opt/iobroker/node_modules/has-property-descriptors
                  npm ERR! extraneous: has-tostringtag@1.0.0 /opt/iobroker/node_modules/has-tostringtag
                  npm ERR! extraneous: homebridge-plugin-wrapper@2.3.0 /opt/iobroker/node_modules/homebridge-plugin-wrapper
                  npm ERR! extraneous: internal-slot@1.0.3 /opt/iobroker/node_modules/internal-slot
                  npm ERR! invalid: iobroker.node-red@3.3.1 /opt/iobroker/node_modules/iobroker.node-red
                  npm ERR! missing: iobroker.telegram@1.13.0, required by iobroker.inst@3.0.0
                  npm ERR! extraneous: is-bigint@1.0.4 /opt/iobroker/node_modules/is-bigint
                  npm ERR! extraneous: is-boolean-object@1.1.2 /opt/iobroker/node_modules/is-boolean-object
                  npm ERR! extraneous: is-callable@1.2.4 /opt/iobroker/node_modules/is-callable
                  npm ERR! extraneous: is-date-object@1.0.5 /opt/iobroker/node_modules/is-date-object
                  npm ERR! extraneous: is-negative-zero@2.0.2 /opt/iobroker/node_modules/is-negative-zero
                  npm ERR! extraneous: is-number-object@1.0.7 /opt/iobroker/node_modules/is-number-object
                  npm ERR! extraneous: is-regex@1.1.4 /opt/iobroker/node_modules/is-regex
                  npm ERR! extraneous: is-shared-array-buffer@1.0.2 /opt/iobroker/node_modules/is-shared-array-buffer
                  npm ERR! extraneous: is-string@1.0.7 /opt/iobroker/node_modules/is-string
                  npm ERR! extraneous: is-symbol@1.0.4 /opt/iobroker/node_modules/is-symbol
                  npm ERR! extraneous: is-weakref@1.0.2 /opt/iobroker/node_modules/is-weakref
                  npm ERR! extraneous: mock-require@3.0.3 /opt/iobroker/node_modules/mock-require
                  npm ERR! extraneous: node-persist@0.0.11 /opt/iobroker/node_modules/node-persist
                  npm ERR! extraneous: node-telegram-bot-api@0.57.0 /opt/iobroker/node_modules/node-telegram-bot-api
                  npm ERR! extraneous: pkginfo@0.3.1 /opt/iobroker/node_modules/pkginfo
                  npm ERR! extraneous: pseudomap@1.0.2 /opt/iobroker/node_modules/pseudomap
                  npm ERR! extraneous: regexp.prototype.flags@1.4.3 /opt/iobroker/node_modules/regexp.prototype.flags
                  npm ERR! extraneous: socksv5@0.0.6 /opt/iobroker/node_modules/socksv5
                  npm ERR! extraneous: string-argv@0.3.1 /opt/iobroker/node_modules/string-argv
                  npm ERR! extraneous: string.prototype.trimend@1.0.5 /opt/iobroker/node_modules/string.prototype.trimend
                  npm ERR! extraneous: string.prototype.trimstart@1.0.5 /opt/iobroker/node_modules/string.prototype.trimstart
                  npm ERR! extraneous: unbox-primitive@1.0.2 /opt/iobroker/node_modules/unbox-primitive
                  npm ERR! extraneous: which-boxed-primitive@1.0.2 /opt/iobroker/node_modules/which-boxed-primitive
                  
                  npm ERR! A complete log of this run can be found in:
                  npm ERR!     /opt/iobroker/.npm/_logs/2022-08-31T09_48_00_014Z-debug-0.log
                  root@iobroker:/opt/iobroker# 
                  
                  Homoran 1 Reply Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @reindeer-web last edited by

                    @reindeer-web sagte in Ich kann nichts mehr installieren / updaten:

                    Kannst du mir vielleicht bei der Behebung dieser Fehler behilflich sein?

                    bitte mehr Infos zu deinem System.

                    Außerdem warum du

                    @reindeer-web sagte in Ich kann nichts mehr installieren / updaten:

                    root@iobroker:/op

                    als root unterwegs bist un warum und wie du auf

                    @reindeer-web sagte in Ich kann nichts mehr installieren / updaten:

                    npm -v 8.18.0

                    kommst, auch in Verbindung mit welcher node Version

                    reindeer-web 1 Reply Last reply Reply Quote 0
                    • reindeer-web
                      reindeer-web @Homoran last edited by

                      @homoran
                      iobroker läuft in einem Container auf einem qnap NAS.
                      Ich greife darauf mit der console vom portainer zu.
                      Diese Infos liefert die admin-Oberfläche vom iobroker.
                      Plattform: docker
                      RAM: 7.6 GB
                      Node.js: v16.17.0
                      NPM: v8.18.0
                      In der console werden übrigens die gleichen Versionen angezeigt.
                      Wie könnte ich mich denn mit einem Benutzer in putty einloggen?

                      Homoran 1 Reply Last reply Reply Quote 0
                      • Homoran
                        Homoran Global Moderator Administrators @reindeer-web last edited by

                        @reindeer-web sagte in Ich kann nichts mehr installieren / updaten:

                        Node.js: v16.17.0
                        NPM: v8.18.0

                        das passt nicht, und die Antwort darauf

                        @homoran sagte in Ich kann nichts mehr installieren / updaten:

                        warum und wie du auf
                        @reindeer-web sagte in Ich kann nichts mehr installieren / updaten:

                        npm -v 8.18.0

                        kommst,

                        fehlt auch noch

                        reindeer-web 1 Reply Last reply Reply Quote 0
                        • reindeer-web
                          reindeer-web @Homoran last edited by

                          @homoran
                          Wenn ich in der console "npm -v" kommt: 8.18.0
                          und mit "node -v" kommt: v16.17.0
                          Was passt nicht bzw. was müsste denn installiert sein?

                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @reindeer-web last edited by

                            @reindeer-web

                            nodejs 16.17.0 kommt im Paket mit npm 8.15.0 daher. Da hast du also npm irgendwie unorthodox zusätzlich installiert.

                            3ae0f656-2cf3-4572-b016-0b469924f3e7-image.png

                            Wie bist du denn da überhaupt unterwegs?

                            Schau da mal rein:

                            https://forum.iobroker.net/topic/35090/howto-nodejs-installation-und-upgrades-unter-debian

                            reindeer-web 1 Reply Last reply Reply Quote 0
                            • reindeer-web
                              reindeer-web @Thomas Braun last edited by

                              @thomas-braun
                              Habe leider nicht verstanden, was ich auf deine Frage antworten soll.
                              Ja, den link hatte ich mir schon angesehen, da steht sehr viel drin, was man machen und was man nicht machen soll.
                              Ich weiß jetzt nicht, welche Schritte ich als erstes unternehmen soll.
                              Mit dem Befehl
                              npm ls | grep -E 'github|ERR'
                              werden ja viele 'extraneous' ausgegeben. Soll ich die mit
                              cd /opt/iobroker && npm prune
                              bereinigen?

                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @reindeer-web last edited by

                                @reindeer-web
                                Poste mal die Ausgabe zu

                                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
                                

                                Bitte in CodeTags eingebettet.

                                reindeer-web 1 Reply Last reply Reply Quote 0
                                • reindeer-web
                                  reindeer-web @Thomas Braun last edited by

                                  @thomas-braun

                                  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 nodejsx86_64
                                  -P: not found
                                  nodejs is /usr/bin/nodejs
                                  node is /usr/bin/node
                                  npm is /usr/bin/npm
                                  Hit:1 http://deb.debian.org/debian bullseye InRelease
                                  Hit:2 http://deb.debian.org/debian bullseye-updates InRelease                                 
                                  Get:3 http://security.debian.org/debian-security bullseye-security InRelease [48,4 kB]        
                                  Hit:4 https://deb.nodesource.com/node_16.x bullseye InRelease                                 
                                  Fetched 48,4 kB in 1s (37,0 kB/s)                 
                                  Reading package lists... Done
                                  Building dependency tree... Done
                                  Reading state information... Done
                                  61 packages can be upgraded. Run 'apt list --upgradable' to see them.
                                  N: Unable to locate package nodejssudo
                                  N: Unable to locate package ln
                                  N: Unable to locate package /usr/bin/nodejs
                                  [1] + Done(127)                  uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update
                                  
                                  Thomas Braun 2 Replies Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @reindeer-web last edited by

                                    @reindeer-web

                                    Bitte sauber kopieren, da ist irgendwas durcheinander gelaufen.

                                    reindeer-web 1 Reply Last reply Reply Quote 0
                                    • reindeer-web
                                      reindeer-web @Thomas Braun last edited by

                                      @thomas-braun
                                      Da ist jetzt wirklich was durcheinander gekommen:

                                      --------------------------------------------------------------------------------
                                      -------------------------     2022-08-31 15:48:48      -------------------------
                                      --------------------------------------------------------------------------------
                                       
                                      --------------------------------------------------------------------------------
                                      -----                 Welcome to your ioBroker-container!                  -----
                                      -----                    Startupscript is now running.                     -----
                                      -----                          Please be patient!                          -----
                                      --------------------------------------------------------------------------------
                                       
                                      --------------------------------------------------------------------------------
                                      -----                        Debugging information                         -----
                                      -----                                                                      -----
                                      -----                                System                                -----
                                      -----                    arch:                x86_64                       -----
                                      -----                                                                      -----
                                      -----                             Docker-Image                             -----
                                      -----                    image:               v6.0.0                       -----
                                      -----                    build:               2022-02-25T23:46:04+00:00    -----
                                      -----                                                                      -----
                                      -----                               Versions                               -----
                                      /opt/scripts/iobroker_startup.sh: line 48: /usr/bin/node: Permission denied
                                      -----                    node:                                             -----
                                      /usr/bin/env: ‘node’: Permission denied
                                      -----                    npm:                                              -----
                                      -----                                                                      -----
                                      -----                                 ENV                                  -----
                                      -----                    AVAHI:               false                        -----
                                      -----                    PACKAGES:            nano                         -----
                                      -----                    SETGID:              1000                         -----
                                      -----                    SETUID:              1000                         -----
                                      --------------------------------------------------------------------------------
                                       
                                      --------------------------------------------------------------------------------
                                      -----                  Step 1 of 5: Preparing container                   -----
                                      --------------------------------------------------------------------------------
                                       
                                      Installing additional packages is set by ENV.
                                      Checking the following Packages: nano...
                                      nano is already installed.
                                      Reading package lists...
                                      Building dependency tree...
                                      Reading state information...
                                      Reading package lists...
                                      Building dependency tree...
                                      Reading state information...
                                      0 upgraded, 0 newly installed, 0 to remove and 61 not upgraded.
                                      Done.
                                       
                                      --------------------------------------------------------------------------------
                                      -----             Step 2 of 5: Detecting ioBroker installation             -----
                                      --------------------------------------------------------------------------------
                                       
                                      Existing installation of ioBroker detected in /opt/iobroker.
                                       
                                      --------------------------------------------------------------------------------
                                      -----             Step 3 of 5: Checking ioBroker installation              -----
                                      --------------------------------------------------------------------------------
                                       
                                      (Re)Setting folder permissions (This might take a while! Please be patient!)...
                                      Done.
                                       
                                      Fixing "sudo-bug" by replacing sudo in iobroker with gosu...
                                      Done.
                                       
                                      error: exec: "node": executable file not found in $PATH
                                      /opt/scripts/iobroker_startup.sh: line 199: [: !=: unary operator expected
                                      --------------------------------------------------------------------------------
                                      -----                Step 4 of 5: Applying special settings                -----
                                      --------------------------------------------------------------------------------
                                       
                                      Some adapters have special requirements/ settings which can be activated by the use of environment variables.
                                      For more information take a look at readme.md on Github!
                                       
                                      --------------------------------------------------------------------------------
                                      -----                    Step 5 of 5: ioBroker startup                     -----
                                      --------------------------------------------------------------------------------
                                       
                                      Starting ioBroker...
                                       
                                      error: exec: "node": executable file not found in $PATH
                                      
                                      
                                      Thomas Braun 1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @reindeer-web last edited by

                                        @reindeer-web

                                        System auf Stand halten:

                                        61 packages can be upgraded.

                                        iob stop 
                                        sudo apt update
                                        sudo apt full-upgrade
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @reindeer-web last edited by Thomas Braun

                                          @reindeer-web sagte in Ich kann nichts mehr installieren / updaten:

                                          Da ist jetzt wirklich was durcheinander gekommen:

                                          Den iobroker Fixer (oder was auch immer zu den obigen Ausgaben führt) auszuführen hatte ich aber auch nicht vorgeschlagen.

                                          reindeer-web 1 Reply Last reply Reply Quote 0
                                          • reindeer-web
                                            reindeer-web @Thomas Braun last edited by

                                            @thomas-braun
                                            Auf jeden Fall startet iobroker jetzt nicht mehr.

                                            Starting ioBroker...
                                            
                                            error: exec: "node": executable file not found in $PATH
                                            
                                            Thomas Braun 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            686
                                            Online

                                            31.8k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            80
                                            5777
                                            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