Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. Wichtige Hinweise bei neueren npm-Versionen und sudo

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    688

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    18
    1
    5.8k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.5k

Wichtige Hinweise bei neueren npm-Versionen und sudo

Scheduled Pinned Locked Moved ioBroker Allgemein
npmsudoinstalleacces
53 Posts 14 Posters 39.7k Views 8 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • AlCalzoneA Offline
    AlCalzoneA Offline
    AlCalzone
    Developer
    wrote on last edited by
    #10

    @MathiasJ:

    ich habe nicht gewußt, dass es nun einen neuen Weg gibt. deshalb habe ich komplett den alten genutzt.

    http://www.iobroker.net/docu/?page_id=8 … g_optional `

    Der alte, den du da verlinkt hast, funktioniert auch. Schließlich benutzt das Installer-Skript diesen unter der Haube.

    Man muss nur genau lesen:
    > Bitte auf die Ausgaben der Installation achten. Die endgültige Installation muss manuell gestartet werden – die dazu notwendigen Schritte werden auf dem Bildschirm ausgegeben.
    Und eine dieser Ausgaben bezieht sich auf den Befehl, den du oben erwähnt hast.

    Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

    1 Reply Last reply
    -1
    • BBTownB Offline
      BBTownB Offline
      BBTown
      wrote on last edited by
      #11

      Wenn ich gemäß der Anleitung zum Update auf v.8 folgendes eingebe:

      curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
      
      ````dann erhalte ich folgende Fehlermeldung
      

      sudo: Fehler in /etc/sudo.conf, Zeile 0, während Plugin »sudoers_policy« geladen wurde
      sudo: /usr/lib/sudo/sudoers.so darf nur vom Besitzer beschreibbar sein
      sudo: Schwerwiegender Fehler, Plugins konnten nicht geladen werden

      
      Ich habe eine Installation auf Docker Basis und bin dort immer als root unterwegs.
      
      Jemand eine Idee?

      ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Georgius
        wrote on last edited by
        #12

        Meiner Meinung nach brauchst Du kein sudo wenn du eh Root bist.

        1 Reply Last reply
        0
        • BBTownB Offline
          BBTownB Offline
          BBTown
          wrote on last edited by
          #13

          ja, aber wie lautet dann der richtige Befehl?

          ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

          1 Reply Last reply
          0
          • AlCalzoneA Offline
            AlCalzoneA Offline
            AlCalzone
            Developer
            wrote on last edited by
            #14

            @BBTown:

            ja, aber wie lautet dann der richtige Befehl? `
            Schau dir deinen Befehl mal an, such das "sudo" und lass es weg ;)

            Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

            1 Reply Last reply
            0
            • BBTownB Offline
              BBTownB Offline
              BBTown
              wrote on last edited by
              #15

              hahaha …. ja, so weit war ich auch schon 8-)

              curl -sL https://deb.nodesource.com/setup_8.x | -E bash - 
              

              Antwort:

              bash: -E: Kommando nicht gefunden.  
              

              daher ja meine Frage ob jemand den korrekten Befehl nennen kann … ;)

              ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

              1 Reply Last reply
              0
              • BBTownB Offline
                BBTownB Offline
                BBTown
                wrote on last edited by
                #16
                curl -sL https://deb.nodesource.com/setup_8.x | bash - 
                

                das scheint zu passen …

                ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

                1 Reply Last reply
                0
                • paul53P Offline
                  paul53P Offline
                  paul53
                  wrote on last edited by
                  #17

                  -E gehört zu sudo.

                  Aus der https://github.com/nodesource/distributions/blob/master/README.md:

                  # Using Debian, as root
                  curl -sL https://deb.nodesource.com/setup_8.x | bash -
                  apt-get install -y nodejs
                  

                  Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                  Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                  1 Reply Last reply
                  0
                  • BBTownB Offline
                    BBTownB Offline
                    BBTown
                    wrote on last edited by
                    #18

                    ja, danke dir

                    da macht sich mal wieder bemerkbar, wie wenig Linux know-how ich habe und dass ein Normalsterblicher sich immer wieder mit der Syntax schwer tut.

                    ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

                    1 Reply Last reply
                    0
                    • AlCalzoneA Offline
                      AlCalzoneA Offline
                      AlCalzone
                      Developer
                      wrote on last edited by
                      #19

                      Sorry, das hätte ich natürlich auch erwähnen können :D

                      Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                      1 Reply Last reply
                      0
                      • J Offline
                        J Offline
                        jambo
                        wrote on last edited by
                        #20

                        Ich bekomme die Fehlermeldung leider beim Autostart (beim manuellen Starten über die Konsole tritt der Fehler nicht auf):

                        Error:	2018-12-21 00:06:14.553	error	at Timer.listOnTimeout (timers.js:290:5)
                        Error:	2018-12-21 00:06:14.553	error	at tryOnTimeout (timers.js:323:5)
                        Error:	2018-12-21 00:06:14.553	error	at ontimeout (timers.js:498:11)
                        Error:	2018-12-21 00:06:14.553	error	at Timeout.saveConfig [as _onTimeout] (/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:1897:16)
                        Error:	2018-12-21 00:06:14.553	error	at Object.fs.writeFileSync (fs.js:1299:33)
                        Error:	2018-12-21 00:06:14.553	error	at Object.fs.openSync (fs.js:646:18)
                        Error:	2018-12-21 00:06:14.553	error	EACCES: permission denied, open '/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/../../../../iobroker-data/objects.json.bak'
                        uncaught	2018-12-21 00:06:14.551	error	exception: EACCES: permission denied, open '/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/../../../../iobroker-data/objects.json.bak'
                        
                        

                        Ich habe das System extra noch mal neu aufgesetzt, der Fehler besteht aber immer noch. Installiert ist ioBroker in einer Debian-VM unter Proxmox. Beim Installieren habe ich folgende Schritte durchgeführt:

                        1. ioBroker exakt nach dem neuen Weg installiert: http://www.iobroker.net/docu/?page_id=8323&lang=de

                        2. Auf meinem alten Raspi via Backitup-Adapter ein Komplett-Backup erstellt. Auf dem Raspi tritt das Problem übrigens nicht auf.

                        3. Backup wie in der Anleitung zum Backitup-Adapter beschrieben auf dem neuen System erfolgreich eingespielt.

                        4. ioBroker gestartet.

                        ioBroker selbst läuft bei manuellem Start absolut problemlos, nur der Autostart will nicht. "sudo chown -R $(whoami) ~/.npm" hat leider auch nicht geholfen.

                        Hat jemand noch eine Idee?

                        1 Reply Last reply
                        0
                        • AlCalzoneA Offline
                          AlCalzoneA Offline
                          AlCalzone
                          Developer
                          wrote on last edited by
                          #21

                          Anscheinend ist da noch ein Fehler im Installer-Skript, der Fehler verursacht.

                          Dein Problem sollte sich beheben lassen durch

                          sudo chown -R iobroker /opt/iobroker
                          

                          Falls du magst, darfst du gerne das aktualisierte Skript testen:

                          curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/master/installer.sh | bash -
                          

                          Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                          1 Reply Last reply
                          0
                          • J Offline
                            J Offline
                            jambo
                            wrote on last edited by
                            #22

                            Hat leider nicht geholfen. Beim Autostart kommen weiterhin in einer Endlosschleife der gleiche Fehler und dann direkt ein Restart.

                            1 Reply Last reply
                            0
                            • AlCalzoneA Offline
                              AlCalzoneA Offline
                              AlCalzone
                              Developer
                              wrote on last edited by
                              #23

                              @jambo:

                              Hat leider nicht geholfen. Beim Autostart kommen weiterhin in einer Endlosschleife der gleiche Fehler und dann direkt ein Restart. `

                              Sorry, da war noch ein Fehler :?

                              Statt $(whoami) muss dort iobroker stehen. Ich passe es gleich im letzten Post an.

                              Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                              1 Reply Last reply
                              0
                              • J Offline
                                J Offline
                                jambo
                                wrote on last edited by
                                #24

                                Perfekt, jetzt läuft es :D .

                                Vielen Dank für die Unterstützung!

                                1 Reply Last reply
                                0
                                • R Offline
                                  R Offline
                                  Rene1231
                                  wrote on last edited by
                                  #25

                                  Hallo Mathias,

                                  Ich habe einen neuen intel nuc 5CPYH mit frisch installierten Ubuntu 18.04. Habe nach verschiedenen Anleitungen versucht iobroker zu installieren, es funktioniert einfach nicht.

                                  Ich bitte um eine kurze getestete Anleitung.

                                  Vielen Dank

                                  1 Reply Last reply
                                  0
                                  • apollon77A Offline
                                    apollon77A Offline
                                    apollon77
                                    wrote on last edited by
                                    #26

                                    Nimm doch den Artikel der direkt unter dem hier festgepinnt ist ;-)

                                    viewtopic.php?t=19111

                                    Gesendet vom Handy …

                                    Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                                    • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                                    • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                                    1 Reply Last reply
                                    0
                                    • R Offline
                                      R Offline
                                      Rene1231
                                      wrote on last edited by
                                      #27

                                      @apollon77:

                                      Nimm doch den Artikel der direkt unter dem hier festgepinnt ist ;-)

                                      viewtopic.php?t=19111

                                      Gesendet vom Handy … `

                                      Danke,

                                      Wenn Da als root ausführen steht, reicht dann sudo….

                                      MfG Rene

                                      1 Reply Last reply
                                      0
                                      • AlCalzoneA Offline
                                        AlCalzoneA Offline
                                        AlCalzone
                                        Developer
                                        wrote on last edited by
                                        #28

                                        Ich sehe in der dort verlinkten Anleitung keine Aufforderung etwas als Root auszuführen:

                                        ==> http://www.iobroker.net/docu/?page_id=8 … sanleitung

                                        Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                                        1 Reply Last reply
                                        0
                                        • R Offline
                                          R Offline
                                          Rene1231
                                          wrote on last edited by
                                          #29

                                          @AlCalzone:

                                          Ich sehe in der dort verlinkten Anleitung keine Aufforderung etwas als Root auszuführen:

                                          ==> http://www.iobroker.net/docu/?page_id=8 … sanleitung `

                                          Vielen Dank

                                          Das hat nun damit funktionier

                                          Mfg

                                          1 Reply Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

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

                                          505

                                          Online

                                          32.7k

                                          Users

                                          82.6k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe