Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. npm ERR! code ENOTEMPTY - Adapter Upgrade nicht mehr möglich

    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 ERR! code ENOTEMPTY - Adapter Upgrade nicht mehr möglich

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

      @besa

      NPM version: 7.16.0
      

      Du solltest npm@6 einsetzen.

      Und Debian10 / Buster

      B 1 Reply Last reply Reply Quote 0
      • B
        besa @Thomas Braun last edited by

        @thomas-braun NPM 6 hat es gebracht. Danke

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

          @besa
          Wie sieht deine nodeJS-Installation jetzt aus?

          which nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs
          
          B 1 Reply Last reply Reply Quote 0
          • B
            besa @Thomas Braun last edited by

            @thomas-braun said in npm ERR! code ENOTEMPTY - Adapter Upgrade nicht mehr möglich:

            which nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs

            
            linaro@tinkerboard:/opt/iobroker$ which nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs
            /usr/bin/nodejs
            /usr/local/bin/node
            /usr/local/bin/npm
            v12.22.1
            v14.17.0
            6.14.13
            nodejs:
              Installed: 12.22.1-1nodesource1
              Candidate: 12.22.1-1nodesource1
              Version table:
             *** 12.22.1-1nodesource1 500
                    500 https://deb.nodesource.com/node_12.x stretch/main armhf Packages
                    100 /var/lib/dpkg/status
                 4.8.2~dfsg-1 500
                    500 http://http.debian.net/debian stretch/main armhf Packages
            
            
            Thomas Braun B 2 Replies Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @besa last edited by

              @besa

              Falsch installiert. Schau in meiner Signatur wie es richtig gemacht wird.

              1 Reply Last reply Reply Quote 0
              • B
                besa @besa last edited by

                @besa Gerade node.js noch upgedatet

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

                  @besa
                  Aber nicht richtig.

                  B 1 Reply Last reply Reply Quote 0
                  • B
                    besa @Thomas Braun last edited by

                    @thomas-braun

                    
                    linaro@tinkerboard:/opt/iobroker$ which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                    /usr/bin/nodejs
                    v12.22.1
                    /usr/local/bin/node
                    v12.22.1
                    /usr/local/bin/npm
                    6.14.12
                    nodejs:
                      Installed: 12.22.1-1nodesource1
                      Candidate: 12.22.1-1nodesource1
                      Version table:
                     *** 12.22.1-1nodesource1 500
                            500 https://deb.nodesource.com/node_12.x stretch/main armhf Packages
                            100 /var/lib/dpkg/status
                         4.8.2~dfsg-1 500
                            500 http://http.debian.net/debian stretch/main armhf Packages
                    
                    
                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @besa last edited by

                      @besa
                      Immer noch falsch. Die Pfade stimmen nicht.

                      B 1 Reply Last reply Reply Quote 0
                      • B
                        besa @Thomas Braun last edited by

                        @thomas-braun Ja das mit den Pfaden haut leider nicht hin. Habe gem. Deiner Anleitung alles nodejs und node deinstalliert und die Directories mit rm gelöscht.
                        Dann

                        curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -  (für die 12er Version)
                        sudo apt-get install -y nodejs
                        sudo apt-get update && sudo apt-get install yarn
                        sudo npm cache clean -f
                        sudo npm install -g n
                        sudo n 12.22.1 
                        node -v 
                        iobroker fix
                        iobroker start
                        
                         which nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs
                        /usr/bin/nodejs
                        /usr/local/bin/node
                        /usr/local/bin/npm
                        v12.22.1
                        v12.22.1
                        6.14.12
                        nodejs:
                          Installed: 12.22.1-1nodesource1
                          Candidate: 12.22.1-1nodesource1
                          Version table:
                         *** 12.22.1-1nodesource1 100
                                100 /var/lib/dpkg/status
                             10.24.1-1nodesource1 500
                                500 https://deb.nodesource.com/node_10.x stretch/main armhf Packages
                             4.8.2~dfsg-1 500
                                500 http://http.debian.net/debian stretch/main armhf Packages
                        
                        

                        ... und alles ist wieder im "local" Ordner

                        B 1 Reply Last reply Reply Quote 0
                        • B
                          besa @besa last edited by

                          @besa Das hatte ich eingegeben:

                          sudo apt remove node*
                          sudo rm /usr/local/bin/node
                          sudo rm /usr/local/bin/npm
                          
                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @besa last edited by

                            @besa

                            sudo npm install -g n
                            sudo n 12.22.1 
                            

                            Ist ja auch Quatsch. Steht auch so nicht in meinem How to drin. nodejs wird ausschließlich über apt installiert, nicht mit dem Mist über npm,n.

                            B 1 Reply Last reply Reply Quote 0
                            • B
                              besa @Thomas Braun last edited by

                              @thomas-braun Okay, alle wiedee gelöscht mit

                              sudo rm /usr/local/bin/node
                              sudo rm /usr/local/bin/npm
                              
                              curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -  
                              sudo apt-get install -y nodejs
                              sudo apt-get update && sudo apt-get install yarn
                              
                              
                              which nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs
                              /usr/bin/nodejs
                              /usr/bin/node
                              /usr/bin/npm
                              v12.22.1
                              

                              Jetzt fehlte natürlich noch node, oder? Also dann gem. der Anleitung

                              wget https://unofficial-builds.nodejs.org/download/release/v12.22.1/node-v12.22.1-linux-armv6l.tar.xz 
                              tar -xvf node-v12.22.1-linux-armv6l.tar.xz
                              cd node-v12.22.1-linux-armv6l/
                              sudo cp -R * /usr/local/
                              sudo ln -s /usr/local/bin/node /usr/local/bin/nodejs
                              sudo reboot
                              

                              und leider jetzt alles wieder unter local

                              linaro@tinkerboard:~$ which nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs
                              /usr/local/bin/nodejs
                              /usr/local/bin/node
                              /usr/local/bin/npm
                              v12.22.1
                              v12.22.1
                              6.14.12
                              nodejs:
                                Installed: 12.22.1-1nodesource1
                                Candidate: 12.22.1-1nodesource1
                                Version table:
                               *** 12.22.1-1nodesource1 500
                                      500 https://deb.nodesource.com/node_12.x stretch/main armhf Packages
                                      100 /var/lib/dpkg/status
                                   4.8.2~dfsg-1 500
                                      500 http://http.debian.net/debian stretch/main armhf Packages
                              linaro@tinkerboard:~$
                              

                              Mir fehlt irgendwie der Schritt nach der Installation von nodejs node und npm im richtigen Verzeichnis zu installieren. Das habe ich leider nicht gesehen.

                              DANKE

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

                                @besa Arrrrrrrgh!

                                B 1 Reply Last reply Reply Quote 0
                                • B
                                  besa @Thomas Braun last edited by

                                  @thomas-braun Also ich habe einfach mal den mitteleren Teil "wget https://unofficial-builds.nodejs.org/download/release/v12.22.1/node-v12.22.1-linux-armv6l.tar.xz " weggelassen und neu gebootet und schwups

                                  hich nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs
                                  /usr/bin/nodejs
                                  /usr/bin/node
                                  /usr/bin/npm
                                  v12.22.1
                                  v12.22.1
                                  6.14.12
                                  nodejs:
                                    Installed: 12.22.1-1nodesource1
                                    Candidate: 12.22.1-1nodesource1
                                    Version table:
                                   *** 12.22.1-1nodesource1 500
                                          500 https://deb.nodesource.com/node_12.x stretch/main armhf Packages
                                          100 /var/lib/dpkg/status
                                       4.8.2~dfsg-1 500
                                          500 http://http.debian.net/debian stretch/main armhf Packages
                                  
                                  
                                  B 1 Reply Last reply Reply Quote 0
                                  • B
                                    besa @besa last edited by

                                    @besa Das kam mir gleich Spanisch vor

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

                                      @besa Du liest es nicht richtig. Der unofficial-Teil ist nur bei superexoten Konstellationen erforderlich.

                                      B 1 Reply Last reply Reply Quote 0
                                      • B
                                        besa @Thomas Braun last edited by

                                        @thomas-braun Danke für die Lesehilfe. Aber ich war verloren, da ich dachte, dass der NODEJS Teil nur nodejs installiert und nicht NODE und NPM auch.

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

                                          @besa

                                          Deswegen steht auch recht weit am Anfang:

                                          Es ist übrigens hier nicht erforderlich, ein Paket 'node' separat zu installieren, das ist schon im Paket 'nodejs' enthalten. Das gilt dann natürlich im weiteren auch für Upgrades/Updates von node.

                                          B 1 Reply Last reply Reply Quote 0
                                          • B
                                            besa @Thomas Braun last edited by

                                            @thomas-braun Viele herzlichen Dank und ein schönes Wochenende im Biergarten

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            413
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            8
                                            69
                                            11690
                                            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