Navigation

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

    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 Fehler

    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Jokersmiler last edited by

      @thomas-braun

      Wie sollte es grundlegend aussehen?

      Ausgabe von sudo nano /etc/apt/sources.list.d/nodesource.list ist:

      deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x buster main
      deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x buster main
      

      Scheinbar passt aber das alternatives

      pi@IOBroker:/opt/iobroker $ ls -la /usr/bin/nodejs
      lrwxrwxrwx 1 root root 24 Dec  3  2020 /usr/bin/nodejs -> /etc/alternatives/nodejs
      pi@IOBroker:/opt/iobroker $ ls -la /etc/alternatives/nodejs
      lrwxrwxrwx 1 root root 13 Dec  3  2020 /etc/alternatives/nodejs -> /usr/bin/node
      

      Ein reboot hatte leider keine Änderung gebracht.
      Hast du noch einen Ansatz?

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

        @jokersmiler

        In die nodesource.list gehört nodejs16 eingetragen.
        Und die alternatives passen nicht, weil das nodesource-Paket nicht über alternatives läuft.
        Du hast da also eine anders gepacktes nodesource installiert. Die Frage ist: Welches und warum, nach welcher Anleitung?

        1 Reply Last reply Reply Quote 0
        • J
          Jokersmiler last edited by

          @thomas-braun

          War eine veraltete Anleitung. 🙂
          Hab mal ein Update gemacht, nur NPM wird mir als Version nicht angezeigt.

          pi@IOBroker:/opt/iobroker $ node -v
          v16.15.1
          pi@IOBroker:/opt/iobroker $ nodejs -v
          v16.15.1
          pi@IOBroker:/opt/iobroker $ npm -v
          
          pi@IOBroker:/opt/iobroker $ cd ..
          pi@IOBroker:/opt $ cd ..
          pi@IOBroker:/ $ npm -v
          8.11.0
          

          und hier fehlt wieder etwas... im Verzeichnis /opt/iobroker

          pi@IOBroker:/opt/iobroker $ uname -m && which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
          armv7l
          /usr/bin/nodejs
          /usr/bin/node
          /usr/bin/npm
          v16.15.1
          v16.15.1
          

          Ich nehme an, dass das aktuelle Problem ist, dass wohl NPM für den iobroker nicht erkannt wird... wo könnte die Konfiguration dafür angepasst werden?

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

            @jokersmiler

            Ich sehe nicht was du da treibst oder getrieben hast.
            Welche Anleitung?

            J 1 Reply Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @Jokersmiler last edited by

              @jokersmiler sagte in NPM Fehler:

              War eine veraltete Anleitung.

              bitte Link!

              1 Reply Last reply Reply Quote 0
              • J
                Jokersmiler @Thomas Braun last edited by Jokersmiler

                @thomas-braun
                https://www.elzershark.com/forum/index.php?thread/157-nach-update-node-adapter-können-nicht-mehr-gelöscht-bzw-hinzugefügt-werden/

                https://www.iobroker.net/docu/index-26.htm?page_id=3928&lang=de

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

                  @jokersmiler sagte in NPM Fehler:

                  @thomas-braun
                  https://www.elzershark.com/forum/index.php?thread/157-nach-update-node-adapter-k%C3%B6nnen-nicht-mehr-gel%C3%B6scht-bzw-hinzugef%C3%BCgt-werden/

                  ohne Worte!

                  DANKE!

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

                    @jokersmiler

                    Ganz ehrlich: Lass die Finger von JEGLICHEN Murks-Anleitungen vom dem Elsterfischstäbchen. Das ist durch die Bank Schrott. Inklusive des windigen tollen Tools...

                    Und nach welcher 'Anleitung' hast du initial die node16 ins System gebracht?

                    J 1 Reply Last reply Reply Quote 1
                    • J
                      Jokersmiler @Thomas Braun last edited by

                      @thomas-braun

                      ja scheinbar hatte es nicht den gewünschten Effekt.

                      Wie könnte ich NPM wieder für ioBroker gefixt bekommen?

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

                        @jokersmiler

                        cd ~
                        sudo ln -s /usr/bin/node /usr/bin/nodejs
                        uname -m && which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                        
                        1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Jokersmiler last edited by

                          @jokersmiler

                          Bist du 'Winglet' im anderen Forum?
                          Dann:
                          Und nach welcher 'Anleitung' hast du initial die node16 ins System gebracht?

                          1 Reply Last reply Reply Quote 0
                          • J
                            Jokersmiler last edited by Jokersmiler

                            @thomas-braun

                            Welches Forum - welcher Winglet? Nach deiner Empfehlung hab ich aus 14 mal 16 ausprobiert und dabei diese Anleitung versucht: https://www.iobroker.net/#de/documentation/install/linux.md

                            Aber es scheint auch mit Unterstützung wohl schwierig zu sein, wieder eine funktionierende Umgebung hinzubekommen. Bislang ist mir folgendes aufgefallen

                            • Soweit ich das sehe, ist Nodejs 16 mit npm 6 eher kompatibel zu sein, da im /opt/iobroker der npm -v angezeigt wird.
                            • Iobroker fix läuft auch nicht ganz rund bei den Rechten, "double dot (..) wird wohl vergessen"
                            • lrwxrwxrwx 1 root root 13 Jun 19 22:29 nodejs -> /usr/bin/node passt auch wieder

                            Aber es tauchen weiterhin Fehler in der GUI auf, wie z.B.:

                            host.IOBroker
                            2022-06-20 21:59:24.788 info iobroker npm-install: exit 25
                            host.IOBroker
                            2022-06-20 21:59:23.747 error iobroker npm-install: host.IOBroker Cannot install iobroker.flot@1.10.7: 0
                            host.IOBroker
                            2022-06-20 21:59:22.995 info iobroker npm-install: Installing iobroker.flot@1.10.7... (System call)
                            host.IOBroker
                            2022-06-20 21:59:22.994 info iobroker npm-install: NPM version: 6.14.17
                            host.IOBroker
                            2022-06-20 21:59:20.190 info iobroker install flot using installedVersion

                            Eine Idee woran das liegen könnte?

                            Thomas Braun 2 Replies Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @Jokersmiler last edited by Thomas Braun

                              @jokersmiler sagte in NPM Fehler:

                              ist Nodejs 16 mit npm 6 eher kompatibel zu sein

                              Nein. nodejs16 kommt mit npm8 daher. Das ist dann auch bestens miteinander kompatibel.

                              Iobroker fix läuft auch nicht ganz rund bei den Rechten, "double dot (..) wird wohl vergessen"

                              Du weißt schon, dass die . und .. in den Verzeichnissen eh ganz eigenen Regeln unterliegen? Pack die nie an!

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

                                @jokersmiler sagte in NPM Fehler:

                                Eine Idee woran das liegen könnte?

                                Nein. Wie hast du denn jetzt nodejs hingefummelt?

                                uname -m && which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                                
                                J 1 Reply Last reply Reply Quote 0
                                • J
                                  Jokersmiler @Thomas Braun last edited by

                                  @thomas-braun

                                  den symbolischen Link angepasst.

                                  npm8 löst folgendes aus in der GUI
                                  iobroker npm-install: Use "npm install -g npm@4" or "npm install -g npm@latest" to install a supported version.You need to make sure to repeat this step after installing an update to NodeJS and/or npm!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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

                                    @jokersmiler sagte in NPM Fehler:

                                    den symbolischen Link angepasst.

                                    Wat?

                                    npm8 löst folgendes aus in der GUI

                                    Noch mehr wat?
                                    Was treibst du da bitte?

                                    Bitte die Ausgaben im Terminal zu

                                    uname -m && which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                                    
                                    J 1 Reply Last reply Reply Quote 0
                                    • Homoran
                                      Homoran Global Moderator Administrators @Jokersmiler last edited by

                                      @jokersmiler sagte in NPM Fehler:

                                      npm8 löst folgendes aus in der GUI

                                      welche GUI?

                                      Textmeldungen bitte in code tags.

                                      Wo kommt diese Meldung genau, bei welcher Aktion?
                                      Wo kommt die her?
                                      biei so vielen Ausrufezeichen sollte sie nicht von iob sein

                                      was für ein Befehl soll iobroker npm install sein?

                                      haus-automatisierung 1 Reply Last reply Reply Quote 0
                                      • J
                                        Jokersmiler @Thomas Braun last edited by Jokersmiler

                                        @thomas-braun
                                        Nach erneuten update auf nodejs v16x ohne Anpassung auf npm@6, also mit npm@8

                                        pi@IOBroker:/opt/iobroker $ uname -m && which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                                        armv7l
                                        /usr/bin/nodejs
                                        /usr/bin/node
                                        /usr/bin/npm
                                        v16.15.1
                                        v16.15.1
                                        
                                        pi@IOBroker:/opt/iobroker $ cd ..
                                        pi@IOBroker:/opt $ cd ..
                                        pi@IOBroker:/ $ uname -m && which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                                        armv7l
                                        /usr/bin/nodejs
                                        /usr/bin/node
                                        /usr/bin/npm
                                        v16.15.1
                                        v16.15.1
                                        8.12.2
                                        pi
                                        /
                                        Hit:1 http://phoscon.de/apt/deconz buster InRelease
                                        Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
                                        Hit:3 http://archive.raspberrypi.org/debian buster InRelease
                                        Hit:4 https://deb.nodesource.com/node_16.x buster InRelease
                                        Reading package lists... Done
                                        Building dependency tree
                                        Reading state information... Done
                                        15 packages can be upgraded. Run 'apt list --upgradable' to see them.
                                        nodejs:
                                          Installed: 16.15.1-deb-1nodesource1
                                          Candidate: 16.15.1-deb-1nodesource1
                                          Version table:
                                         *** 16.15.1-deb-1nodesource1 500
                                                500 https://deb.nodesource.com/node_16.x buster/main armhf Packages
                                                100 /var/lib/dpkg/status
                                             10.24.0~dfsg-1~deb10u1 500
                                                500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                                        
                                        
                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @Jokersmiler last edited by Thomas Braun

                                          @jokersmiler
                                          Hast du das nach dem Quatsch vom Elsterdingens gemacht?

                                          iobroker stop 
                                          iobroker fix
                                          iobroker start
                                          cd /opt/iobroker
                                          sudo -u iobroker which npm
                                          which npm 
                                          cd ~
                                          which npm
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • J
                                            Jokersmiler last edited by

                                            @thomas-braun

                                            das nicht:

                                            sudo -u iobroker which npm
                                            which npm 
                                            cd ~
                                            which npm
                                            
                                            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

                                            565
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            52
                                            1779
                                            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