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. Update npm und node.js

NEWS

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    22
    1
    1.2k

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.2k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    14
    1
    2.5k

Update npm und node.js

Scheduled Pinned Locked Moved ioBroker Allgemein
91 Posts 23 Posters 60.4k Views 6 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.
  • HomoranH Do not disturb
    HomoranH Do not disturb
    Homoran
    Global Moderator Administrators
    wrote on last edited by
    #21

    Nochmal zur Begriffsklärung:

    Es geht immer um nodejs

    www.nodejs.org

    lediglich die Bezeichnung der Pakete variiert.

    @AingTii:

    nächster schritt wäre, wie bekomme ich entweder npm 4.x oder V5.7.1 drauf `

    npm install -g npm@latest
    

    Gruß

    Rainer

    kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

    Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

    der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AingTii
      wrote on last edited by
      #22

      so, npm 5.8.0 installiert mit

      sudo npm install -g npm @latest
      
      npm -v
      5.8.0
      
      

      so, nodejs 8.x installiert mit

      curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
      sudo apt install -y build-essential libavahi-compat-libdnssd-dev libudev-dev libpam0g-dev nodejs
      sudo reboot
      
      nodejs -v
      V8.11.1
      
      
      node -v
      V8.9.0
      
      

      nun noch mal update& upgrade

      sudo apt update
      sudo apt upgrade
      sudo reboot
      
      

      läuft soweit alles, bis auf amazondash….

      dazu mache ich aber ein neues Thema auf....

      Danke

      Gruß Jens

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AingTii
        wrote on last edited by
        #23

        so, nun noch mal grade gezogen und beide Versionen auf v8.11.1 installiert..

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

          @AingTii:

          nodejs -v
          V8.11.1
          
          
          node -v
          V8.9.0
          
          ```` `  
          

          Jetzt hast du 2 Versionen, das ist gar nicht gut.

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

          1 Reply Last reply
          0
          • A Offline
            A Offline
            AingTii
            wrote on last edited by
            #25

            ne, jetzt beides 8.11.1

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

              Hmm, dass du zwischenzeitlich 2 Versionen hattest, deutet aber auf 2 verschiedene Installationen hin. Würde ich mal beobachten - wenn es Probleme gibt, sollte man eine davon entfernen. Paul53 ist hier der Profi für solche Dinge und hat das schon mehrfach beschrieben.

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

              1 Reply Last reply
              0
              • A Offline
                A Offline
                AingTii
                wrote on last edited by
                #27

                OK, Danke

                Also Du meinst ob wohl beide Versionen jetzt gleich sind, sind es verschiedene Installationen die

                Probleme verurachen können?

                Würde natürlich das Dashbutton Problem erklären können…. :roll:

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  MaikB85
                  wrote on last edited by
                  #28

                  Bei mir meldet iobroker.admin seit dem update immer ich müsse meine Node.js Version aktualisieren:
                  ` > Empfehlung

                  error_outlineioBroker unterstützt die LTS Versionen 6, 8, 10 oder neuer von Node.js. Bitte aktualisieren Sie die verwendete Node.js Version ("v4.5.0") auf dem Rechner "pine64" auf eine unterstützte Version. Wir empfehlen die Verwendung von Node.js 6. `

                  ich habe jetzt nach der Anleitung http://www.iobroker.net/docu/?page_id=5 … ion_Nodejs versucht das zu aktualisieren nur bin ich gerade etwas verwirrt, was die Versionen angeht.

                  Bei den Versionsabfragen bekomme ich folgende Ausgabe:

                  root@pine64:~# node -v
                  v4.5.0
                  root@pine64:~# nodejs -v
                  v6.14.3
                  root@pine64:~# npm -v
                  /usr/local/lib/node_modules/npm/bin/npm-cli.js:82
                        let notifier = require('update-notifier')({pkg})
                        ^^^
                  
                  SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
                      at exports.runInThisContext (vm.js:53:16)
                      at Module._compile (module.js:373:25)
                      at Object.Module._extensions..js (module.js:416:10)
                      at Module.load (module.js:343:32)
                      at Function.Module._load (module.js:300:12)
                      at Function.Module.runMain (module.js:441:10)
                      at startup (node.js:139:18)
                      at node.js:974:3
                  

                  warum wird bei node noch 4.5 angezeigt? ist das richtig so? Muss ich jetzt den reinstall ausführen?
                  ` > Bei einer bestehenden ioBroker-Installation müssen beim Wechsel der Masterversion von nodejs (4.x, 6.x, 8.x, 10.x) anschließend unbedingt die bereits installierten Adapter für diese geänderte node-Version neu kompiliert werden.

                  Dies geschieht mit dem Befehl: sudo ./reinstall.sh `

                  Gruß Maik

                  1 Reply Last reply
                  0
                  • HomoranH Do not disturb
                    HomoranH Do not disturb
                    Homoran
                    Global Moderator Administrators
                    wrote on last edited by
                    #29

                    @MaikB85:

                    ist das richtig so? `
                    definitiv: Nein!

                    du hast, warum auch immer, anscheinend zwei verschiedene nodejs installationen auf deinem System.

                    @MaikB85:

                    Muss ich jetzt den reinstall ausführen? `
                    Nein!

                    erst muss eine (die 4.x) node-Version wieder weg.

                    Gruß

                    Rainer

                    kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

                    Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                    der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      MaikB85
                      wrote on last edited by
                      #30

                      fragt sich nur wie ich die weg bekomme? ich hab eigentlich vorher laut Anleitung die Deinstallation durchgeführt. Ich mein sogar, dass er da schon kein node gefunden hatte nur nodejs. Sonst probier ich das jetzt nochmal

                      root@pine64:~# sudo apt-get --purge remove node
                      Reading package lists... Done
                      Building dependency tree       
                      Reading state information... Done
                      Package 'node' is not installed, so not removed
                      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                      

                      Geht so nicht :(

                      1 Reply Last reply
                      0
                      • HomoranH Do not disturb
                        HomoranH Do not disturb
                        Homoran
                        Global Moderator Administrators
                        wrote on last edited by
                        #31

                        Hast du auch:

                        sudo apt-get --purge remove nodejs
                        

                        durchgeführt?

                        Gruß

                        Rainer

                        kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

                        Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                        der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          MaikB85
                          wrote on last edited by
                          #32

                          Hab ich jetzt nochmal:

                          root@pine64:~# sudo apt-get --purge remove nodejs
                          Reading package lists... Done
                          Building dependency tree       
                          Reading state information... Done
                          The following packages will be REMOVED:
                            nodejs*
                          0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
                          After this operation, 44.6 MB disk space will be freed.
                          Do you want to continue? [Y/n] y
                          (Reading database ... 32424 files and directories currently installed.)
                          Removing nodejs (6.14.3-1nodesource1) ...
                          Processing triggers for man-db (2.7.5-1) ...
                          
                          

                          Dann bekomme ich für "nodejs -v" keine Rückgabe aber bei "node -v" steht immer noch 4.5

                          1 Reply Last reply
                          0
                          • HomoranH Do not disturb
                            HomoranH Do not disturb
                            Homoran
                            Global Moderator Administrators
                            wrote on last edited by
                            #33

                            Mach mal:

                            which node
                            

                            aber dann bin ich mangels weiteren Wissens raus :(

                            Gruß

                            Rainer

                            kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

                            Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                            der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                            1 Reply Last reply
                            0
                            • M Offline
                              M Offline
                              MaikB85
                              wrote on last edited by
                              #34

                              @Homoran:

                              Mach mal:

                              which node
                              

                              aber dann bin ich mangels weiteren Wissens raus :(

                              Gruß

                              Rainer `

                              Dann bekomme ich den Pfad zurückgegeben: "/usr/local/bin/node"

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

                                Was ergibt ?

                                /usr/local/bin/node -v
                                /usr/bin/node -v
                                ls -l /usr/local/bin/node*
                                ls -l /usr/bin/node*
                                

                                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
                                • HomoranH Do not disturb
                                  HomoranH Do not disturb
                                  Homoran
                                  Global Moderator Administrators
                                  wrote on last edited by
                                  #36

                                  Danke Paul!

                                  ich hatte gerade das Forum nach diesen deinen Posts durchforstet

                                  Gruß

                                  Rainer

                                  kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

                                  Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                                  der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                                  1 Reply Last reply
                                  0
                                  • M Offline
                                    M Offline
                                    MaikB85
                                    wrote on last edited by
                                    #37

                                    @paul53:

                                    Was ergibt ?

                                    /usr/local/bin/node -v
                                    /usr/bin/node -v
                                    ls -l /usr/local/bin/node*
                                    ls -l /usr/bin/node*
                                    ```` `  
                                    
                                    root@pine64:~# /usr/local/bin/node -v
                                    v4.5.0
                                    root@pine64:~# /usr/bin/node -v
                                    -bash: /usr/bin/node: No such file or directory
                                    root@pine64:~# ls -l /usr/local/bin/node*
                                    -rwxr-xr-x 1 1001 1001 23735413 Aug 16  2016 /usr/local/bin/node
                                    root@pine64:~# ls -l /usr/bin/node*
                                    ls: cannot access '/usr/bin/node*': No such file or directory
                                    

                                    ich hab jetzt allerdings die deinstallation schon ausgeführt. Deswegen ist vielleicht das eine Verzeichnis leer. Ich könnte nochmal die 6.x installieren.

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

                                      Es gibt offenbar nur eine Datei node mit Version 4.5.0. Die lösche einfach (als User root)

                                      rm /usr/local/bin/node
                                      npm uninstall npm -g
                                      

                                      und installiere die neue Version. Ich würde Version 8.x empfehlen, da Du sonst bald wieder das Problem haben wirst. Da Version 8.x aber zusammen mit NPM 5.6.0 kommt (böse !), muss <u>anschließend</u> NPM auf Version 6.x aktualisiert werden.

                                      npm install -g npm@latest
                                      npm -v
                                      node -v
                                      which node
                                      ls -l /usr/bin/node* 
                                      

                                      Dann poste bitte die Ausgabe der letzten 4 Befehle, da wahrscheinlich noch ein Symlink erstellt werden muss, damit ioBroker beim Boot automatisch startet.

                                      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
                                      • DutchmanD Online
                                        DutchmanD Online
                                        Dutchman
                                        Developer Most Active Administrators
                                        wrote on last edited by
                                        #39

                                        Noch als kleiner Hinweis, Installation mit root oder sudo ausführen !

                                        Sent from my iPhone using Tapatalk

                                        1 Reply Last reply
                                        0
                                        • M Offline
                                          M Offline
                                          MaikB85
                                          wrote on last edited by
                                          #40

                                          @paul53:

                                          Es gibt offenbar nur eine Datei node mit Version 4.5.0. Die lösche einfach (als User root)

                                          rm /usr/local/bin/node
                                          npm uninstall npm -g
                                          

                                          und installiere die neue Version. Ich würde Version 8.x empfehlen, da Du sonst bald wieder das Problem haben wirst. Da Version 8.x aber zusammen mit NPM 5.6.0 kommt (böse !), muss <u>anschließend</u> NPM auf Version 6.x aktualisiert werden.

                                          npm install -g npm@latest
                                          npm -v
                                          node -v
                                          which node
                                          ls -l /usr/bin/node* 
                                          

                                          Dann poste bitte die Ausgabe der letzten 4 Befehle, da wahrscheinlich noch ein Symlink erstellt werden muss, damit ioBroker beim Boot automatisch startet. `

                                          DANKE!!! Jetzt passt alles! Hier noch die Ausgaben:

                                          root@pine64:~# npm -v
                                          6.2.0
                                          root@pine64:~# node -v
                                          v8.11.3
                                          root@pine64:~# which node
                                          /usr/bin/node
                                          root@pine64:~# ls -l /usr/bin/node*
                                          -rwxr-xr-x 1 root root 27825840 Jun 13 02:27 /usr/bin/node
                                          lrwxrwxrwx 1 root root       24 Jul 16 17:29 /usr/bin/nodejs -> /etc/alternatives/nodejs
                                          root@pine64:~# nodejs -v
                                          v8.11.3
                                          
                                          

                                          Schönen Abend noch!

                                          Gruß Maik

                                          1 Reply Last reply
                                          0
                                          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

                                          787

                                          Online

                                          32.5k

                                          Users

                                          81.7k

                                          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