Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. NPM Installation nach Anleitung?

    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

    NPM Installation nach Anleitung?

    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User @Homoran last edited by

      @Homoran
      Eine Neuinstallation bot sicht gerade an 😉

      Also neues Raspian Buster Lite vom 2019-09-26 installiert und sofort die Versionen geprüft:
      version node.JPG

      Danach kein update/upgrade gemacht sondern sofort node.js installiert mit:

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

      Danach wieder Versionen geprüft:
      version node2.JPG

      Also liegt nicht am update/upgrade und er installiert sofort 10.15.2 und kein NPM

      Viele Grüße

      paul53 2 Replies Last reply Reply Quote 0
      • paul53
        paul53 @Guest last edited by paul53

        @Pete0815 sagte:

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

        Raspbian buster benötigt Node.js Version 10.x.

        1 Reply Last reply Reply Quote 0
        • ?
          A Former User last edited by

          "Die momentan empfohlene Version ist node 8.x; mit js-controller 1.5.7 auch node 10.x, dann in Schritt 4.1. die “8.x” gegen 10.x” austauschen"

          Glaube das ist anpassungsfähig

          paul53 1 Reply Last reply Reply Quote 0
          • paul53
            paul53 @Guest last edited by

            @Pete0815 Doku:

            Die momentan empfohlene Version ist node 10.x; mit js-controller 1.5.7 auch node 8.x, dann in Schritt 4.1. die “10.x” gegen 8.x” austauschen.

            ? 1 Reply Last reply Reply Quote 0
            • ?
              A Former User @paul53 last edited by

              @paul53 https://www.iobroker.net/docu/index-15.htm?page_id=8323&lang=de
              Dann ist die Internetseite "älter"

              paul53 1 Reply Last reply Reply Quote 0
              • paul53
                paul53 @Guest last edited by paul53

                @Pete0815 sagte:

                neues Raspian Buster Lite vom 2019-09-26 installiert und sofort die Versionen geprüft:

                Mach es bitte noch einmal nach Anleitung und zuerst Node.js:

                curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
                sudo apt install -y nodejs
                node -v
                nodejs -v
                npm -v
                sudo apt update && sudo apt upgrade
                sudo reboot
                node -v
                nodejs -v
                npm -v
                
                ? 1 Reply Last reply Reply Quote 0
                • paul53
                  paul53 @Guest last edited by

                  @Pete0815 sagte:

                  Dann ist die Internetseite "älter"

                  Ja, das ist nicht mehr die "offizielle" Doku.

                  1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User @paul53 last edited by A Former User

                    @paul53 said in NPM Installation nach Anleitung?:

                    Nach Installation

                    curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
                    
                    sudo apt install -y nodejs
                    
                    pi@raspberrypi-IOB:~ $ node -v
                    v10.18.1
                    pi@raspberrypi-IOB:~ $ nodejs -v
                    v10.18.1
                    pi@raspberrypi-IOB:~ $ npm -v
                    6.13.4
                    
                    sudo apt update && sudo apt upgrade
                    
                    sudo reboot
                    
                    pi@raspberrypi-IOB:~ $ node -v
                    v10.18.1
                    pi@raspberrypi-IOB:~ $ nodejs -v
                    v10.18.1
                    pi@raspberrypi-IOB:~ $ npm -v
                    6.13.4
                    

                    Funktioniert. Problem war dann die Nutzung der alten Doku von der Internetseite. Wiese löscht man das nicht und verlinkt zu einer Quelle? Wäre doch einfacher zu pflegen?

                    paul53 1 Reply Last reply Reply Quote 0
                    • paul53
                      paul53 @Guest last edited by paul53

                      @Pete0815 sagte:

                      verlinkt zu einer Quelle?

                      Der Doku-Link oben im Forum führt nur zu einer Quelle. Die alte Doku findet man nur noch per Suchmaschine.

                      @Pete0815 sagte in NPM Installation nach Anleitung?:

                      Problem war dann die Nutzung der alten Doku von der Internetseite.

                      Im ersten Post hast Du einen Link auf die aktuelle Anleitung angegeben.

                      1 Reply Last reply Reply Quote 0
                      • marcuskl
                        marcuskl @paul53 last edited by

                        @paul53 sagte in NPM Installation nach Anleitung?:

                        @Pete0815 sagte:

                        node und nodejs Version welche beide 10.15.2 sind.

                        Das ist offenbar die mit Raspbian Buster gelieferte Version ohne npm. Lösche die Version und installiere Node.js nach Punkt 4. der Anleitung.

                        which node
                        which nodejs
                        sudo rm /pfad/node
                        sudo rm /pfad/nodejs
                        curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
                        sudo apt install -y nodejs
                        sudo reboot
                        node -v
                        nodejs -v
                        npm -v
                        

                        pfad anpassen !

                        Ich bin auch nach deiner Anleitung vorgegangen, weil bei mir nodejs zweimal im System installiert ist, aber wenn ich alles gemacht habe kommt bei "nodejs -v"

                        root@iobroker:~# nodejs -v
                        -bash: nodejs: Kommando nicht gefunden.
                        
                        

                        Was kann ich tun ?

                        paul53 1 Reply Last reply Reply Quote 0
                        • paul53
                          paul53 @marcuskl last edited by paul53

                          @marcuskl sagte:

                          -bash: nodejs: Kommando nicht gefunden.

                          Das ist verwunderlich, dass der Symlink nodejs nicht auch bei der Installation erzeugt wurde. ioBroker benötigt ihn nicht. Was ergibt ?

                          node -v
                          which node
                          
                          marcuskl 1 Reply Last reply Reply Quote 0
                          • marcuskl
                            marcuskl @paul53 last edited by

                            @paul53 ich habe ein Rollback gemacht und bin nochmal nach deiner Anleitung vorgegangen.

                            Diesmal habe ich danach nochmal kontrolliert mit node -v ob alles weg ist, es war aber noch da

                            root@iobroker:~# which node
                            /usr/local/bin/node
                            root@iobroker:~# which nodejs
                            /usr/bin/nodejs
                            root@iobroker:~# rm /usr/local/bin/node
                            root@iobroker:~# rm /usr/bin/nodejs
                            root@iobroker:~# node -v
                            v10.19.0
                            root@iobroker:~# which node
                            /usr/bin/node
                            root@iobroker:~# rm /usr/bin/node
                            root@iobroker:~# ode -v
                            -bash: ode: Kommando nicht gefunden.
                            root@iobroker:~# node -v
                            -bash: /usr/bin/node: Datei oder Verzeichnis nicht gefunden
                            root@iobroker:~# nodejs -v
                            -bash: nodejs: Kommando nicht gefunden.
                            
                            

                            Habe nochmal rm /pfad/node gemacht, danach war alles weg.
                            Aber jetzt lässt sich nodejs nicht mehr installieren, er sagt mir es ist schon drauf:

                            root@iobroker:~# sudo apt install -y nodejs
                            Paketlisten werden gelesen... Fertig
                            Abhängigkeitsbaum wird aufgebaut.
                            Statusinformationen werden eingelesen.... Fertig
                            nodejs ist schon die neueste Version (10.19.0-1nodesource1).
                            Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt:
                              linux-image-4.9.0-8-amd64
                            Verwenden Sie »sudo apt autoremove«, um es zu entfernen.
                            0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
                            
                            

                            Dabei kommt gar nichts wenn ich node -v, nodejs -v eingebe:

                            root@iobroker:~# node -v
                            -bash: /usr/bin/node: Datei oder Verzeichnis nicht gefunden
                            root@iobroker:~# nodejs -v
                            -bash: nodejs: Kommando nicht gefunden.
                            root@iobroker:~# npm -v
                            /usr/bin/env: „node“: Datei oder Verzeichnis nicht gefunden
                            root@iobroker:~#
                            
                            
                            
                            paul53 1 Reply Last reply Reply Quote 0
                            • paul53
                              paul53 @marcuskl last edited by

                              @marcuskl sagte:

                              ich habe ein Rollback gemacht und bin nochmal nach deiner Anleitung vorgegangen.

                              Ganz schön voreilig.

                              @marcuskl sagte:

                              Dabei kommt gar nichts wenn ich node -v, nodejs -v eingebe:

                              Dann existiert node nicht mehr im Suchpfad, aber noch irgendwo anders, was sich apt wohl gemerkt hat. Führe mal aus

                              sudo apt --purge remove nodejs
                              sudo apt --purge remove npm
                              sudo apt autoremove
                              sudo reboot
                              

                              und installiere anschließend Node.js noch einmal.

                              marcuskl 2 Replies Last reply Reply Quote 1
                              • marcuskl
                                marcuskl @paul53 last edited by

                                @paul53 Super danke, hat geklappt 👍 👍 👍
                                Jetzt stimmt alles:

                                root@iobroker:~# node -v
                                v10.19.0
                                root@iobroker:~# nodejs -v
                                v10.19.0
                                root@iobroker:~# npm -v
                                6.4.1
                                root@iobroker:~# which node
                                /usr/bin/node
                                root@iobroker:~# which nodejs
                                /usr/bin/nodejs
                                root@iobroker:~#
                                
                                1 Reply Last reply Reply Quote 0
                                • marcuskl
                                  marcuskl @paul53 last edited by

                                  @paul53 jetzt das nächste Problem, es lässt sich npm nicht aktualisieren.

                                  root@iobroker:~# npm install -g npm
                                  /usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
                                  /usr/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js
                                  + npm@6.13.7
                                  updated 1 package in 19.505s
                                  root@iobroker:~# npm -v
                                  6.4.1
                                  
                                  paul53 1 Reply Last reply Reply Quote 0
                                  • paul53
                                    paul53 @marcuskl last edited by

                                    @marcuskl
                                    Schau mal hier.

                                    marcuskl 1 Reply Last reply Reply Quote 1
                                    • marcuskl
                                      marcuskl @paul53 last edited by

                                      @paul53 danke hat geklappt

                                      1 Reply Last reply Reply Quote 0
                                      • W
                                        WErik @FredF last edited by

                                        @fredf
                                        Danke Fred für den Befehl!
                                        Ich hab Stundenlang im Netz gesucht und alles mögliche ausprobiert.
                                        Mit dem einen Befehl funktioniert alles wieder!

                                        Danke dafür 🙂

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

                                          @werik

                                          Ich seh jetzt nicht was du da machst oder vorhast, höchst wahrscheinlich ist es aber falsch.

                                          Homoran 1 Reply Last reply Reply Quote 0
                                          • Homoran
                                            Homoran Global Moderator Administrators @Thomas Braun last edited by Homoran

                                            @werik sagte in NPM Installation nach Anleitung?:

                                            Ich hab Stundenlang im Netz gesucht und alles mögliche ausprobiert.

                                            aber oben auf "Docu" hast du anscheinend nie geklickt
                                            https://www.iobroker.net/#de/documentation/install/linux.md

                                            oder direkt auf der Titelseite von iobroker.net

                                            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

                                            867
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            anleitung installation node.js npm
                                            7
                                            34
                                            18445
                                            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