Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. NPM ERR

    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

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

      Hardwaresystem: NUC
      Arbeitsspeicher: 8GB
      Festplattenart: SSD
      Betriebssystem: Ubuntu
      Node-Version: 12.x.x
      Nodejs-Version: 12.22.5
      NPM-Version: 6.14.14
      Installationsart: Manuell
      Image genutzt: Nein

      Hallo Gemeinde seid dem umstieg auf das aktuelle Admin habe ich bei manchen Adapter das Problem die zu (installieren oder aktualisieren)

      NPM version: 6.14.14
      npm install iobroker.vis-inventwo@3.1.3 --loglevel error --prefix "/opt/iobroker" (System call)
      npm ERR! code ENOTSUP
      npm ERR! notsup Unsupported engine for dns@0.2.2: wanted: {"node":">= 0.10.0 < 0.11.0"} (current: {"node":"12.22.5","npm":"6.14.14"})
      npm ERR! notsup Not compatible with your version of node/npm: dns@0.2.2npm ERR! notsup Not compatible with your version of node/npm: dns@0.2.2npm ERR! notsup Required: {"node":">= 0.10.0 < 0.11.0"}npm ERR! notsup Actual: {"npm":"6.14.14","node":"12.22.5"}
      

      Muss ich warten bis die Adapter aktualisiert wurden oder habe ich eine was falsch ??

      Homoran P 2 Replies Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @Pat last edited by

        @pat sagte in NPM ERR:

        Unsupported engine for dns@0.2.2: wanted: {"node":">= 0.10.0 < 0.11.0"} (current: {"node":"12.22.5","npm"

        da ist eine Abhängigkeit zu dem Paket dns mit total veralteten node Voraussetzungen

        1 Reply Last reply Reply Quote 1
        • P
          Pat @Pat last edited by

          Warscheinlich hier dann auch ??

          $ iobroker add squeezeboxrpc --host Haussteuerung
          NPM version: 6.14.14
          npm install iobroker.squeezeboxrpc@1.3.4 --loglevel error --prefix "/opt/iobroker" (System call)
          npm ERR! code ENOTSUP
          npm ERR! notsup Unsupported engine for dns@0.2.2: wanted: {"node":">= 0.10.0 < 0.11.0"} (current: {"node":"12.22.5","npm":"6.14.14"})
          npm ERR! notsup Not compatible with your version of node/npm: dns@0.2.2npm ERR! notsup Not compatible with your version of node/npm: dns@0.2.2npm ERR! notsup Required: {"node":">= 0.10.0 < 0.11.0"}npm ERR! notsup Actual: {"npm":"6.14.14","node":"12.22.5"}
          
          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @Pat last edited by Thomas Braun

            @pat
            Da scheint irgendwas schräg im System zu hängen. Ich glaube nicht, dass beide Adapter das angemeckerte Modul als Dependency haben.
            Ich weiß aber offengesagt nicht wie man das wirkliche Problem löst.

            Schau vielleicht mal hier rein:

            cd /opt/iobroker
            npm list
            
            P 1 Reply Last reply Reply Quote 0
            • P
              Pat @Thomas Braun last edited by

              @thomas-braun said in NPM ERR:

              npm ERR! missing: crypto@^1.0.1, required by iobroker.javascript@5.2.8
              npm ERR! missing: csv-parse@^4.16.0, required by iobroker.javascript@5.2.8
              npm ERR! missing: dns@^0.2.2, required by iobroker.javascript@5.2.8
              npm ERR! missing: events@^3.3.0, required by iobroker.javascript@5.2.8
              npm ERR! missing: fs@0.0.1-security, required by iobroker.javascript@5.2.8
              npm ERR! missing: iconv-lite@^0.6.3, required by iobroker.javascript@5.2.8
              npm ERR! missing: net@^1.0.2, required by iobroker.javascript@5.2.8
              npm ERR! missing: os@^0.1.2, required by iobroker.javascript@5.2.8
              npm ERR! missing: path@^0.12.7, required by iobroker.javascript@5.2.8
              npm ERR! missing: suncalc@^1.8.0, required by iobroker.javascript@5.2.8
              

              Habe mal nur die ERR rauskopiert die risiegeliste die da vor ist sieht so weit gut aus

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

                @pat
                Hast du das Modul dns evtl. im javascript-Adapter von Hand hinzugefügt? Wenn ja, warum? Schmeiß das mal raus.

                Ist dein node.js senkrecht installiert?

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

                Falls das Modul gemeint sein sollte:
                https://www.npmjs.com/package/dns
                Kein Wunder, denn

                Last publish

                7 years ago

                P 1 Reply Last reply Reply Quote 0
                • P
                  Pat @Thomas Braun last edited by

                  @thomas-braun

                  apt policy nodejs
                  /usr/bin/node
                  /usr/bin/npm
                  

                  das ist der Ausszug!!

                  die Adapter die ich installieren will sind "inventwo Design Widgets" und "SqueezeboxRPC: Controller for Logitec"

                  Bei beiden kommt der gleiche fehler

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

                    @pat

                    Bei Ubuntu würde ich erst linken:

                    sudo ln -s /usr/bin/node /usr/bin/nodejs
                    

                    Dann bitte exakte Ein- und Ausgaben posten.
                    Sollte dann so in der Art aussehen:

                    echad@chet:~ $ which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                    /usr/bin/nodejs
                    v14.17.5
                    /usr/bin/node
                    v14.17.5
                    /usr/bin/npm
                    6.14.14
                    nodejs:
                      Installiert:           14.17.5-deb-1nodesource1
                      Installationskandidat: 16.8.0-deb-1nodesource1
                      Versionstabelle:
                         16.8.0-deb-1nodesource1 500
                            500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages
                     *** 14.17.5-deb-1nodesource1 500
                            500 https://deb.nodesource.com/node_14.x bullseye/main armhf Packages
                            100 /var/lib/dpkg/status
                         12.22.5-deb-1nodesource1 500
                            500 https://deb.nodesource.com/node_12.x bullseye/main armhf Packages
                         12.22.5~dfsg-2~11u1 500
                            500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                    echad@chet:~ $
                    
                    haselchen P 2 Replies Last reply Reply Quote 0
                    • haselchen
                      haselchen Most Active @Thomas Braun last edited by

                      @thomas-braun

                      Deine NPM Version würde ich vielleicht an Deiner Stelle schwärzen oder entfernen.
                      Wenn sich andere Deinen Daten zu Herzen nehmen und versuchen NPM7 ins System zu prügeln , haben wir wieder ne Menge Threads bezüglich des Problems.

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

                        @haselchen Ja, hast ja Recht. Also auf node14 umgestellt.

                        1 Reply Last reply Reply Quote 1
                        • P
                          Pat @Thomas Braun last edited by

                          @thomas-braun said in NPM ERR:

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

                          /usr/bin/nodejs
                          v12.22.5
                          /usr/bin/node
                          v12.22.5
                          /usr/bin/npm
                          6.14.14
                          nodejs:
                            Installiert:           12.22.5-deb-1nodesource1
                            Installationskandidat: 12.22.5-deb-1nodesource1
                            Versionstabelle:
                           *** 12.22.5-deb-1nodesource1 500
                                  500 https://deb.nodesource.com/node_12.x focal/main amd64 Packages
                                  100 /var/lib/dpkg/status
                               10.19.0~dfsg-3ubuntu1 500
                                  500 http://de.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
                          N: Paket /usr/bin/nodejs kann nicht gefunden werden.
                          
                          
                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @Pat last edited by

                            @pat

                            Hast du den Rechner dann mal neugebootet?

                            iobroker update -i
                            

                            anschauen.

                            P 1 Reply Last reply Reply Quote 0
                            • OliverIO
                              OliverIO @Pat last edited by

                              @pat sagte in NPM ERR:

                              die Adapter die ich installieren will sind "inventwo Design Widgets" und "SqueezeboxRPC: Controller for Logitec"
                              Bei beiden kommt der gleiche fehler

                              Ich habe mir mal den dependency baum für squeezeboxrpc angeschaut. Also alle verwendeten Pakete, sowie die wieder von diesen verwendeten und so fort.
                              da wird nirgends ein paket namens dns verwendet.

                              Bei installiertem Paket kann man, ausgehend vom jeweiligen Verzeichnis, sich das wie folgt anschauen:

                              npm ll
                              
                              P 1 Reply Last reply Reply Quote 0
                              • P
                                Pat @Thomas Braun last edited by Pat

                                @thomas-braun

                                Hey
                                den Rechner habe ich schon ein paar mal neugestartet aber ich glaube ich ich habe ein größeres Prob

                                hier erstmal der Auszug

                                pat@Haussteuerung:~$ iobroker update -i
                                Used repository: stable
                                hash unchanged, use cached sources
                                update done
                                Adapter    "admin"         : 5.1.23   , installed 5.1.23
                                Adapter    "backitup"      : 2.1.17   , installed 2.1.13 [Updateable]
                                Adapter    "daswetter"     : 3.0.7    , installed 3.0.7
                                Adapter    "denon"         : 1.11.2   , installed 1.11.2
                                Adapter    "discovery"     : 2.7.0    , installed 2.7.0
                                Adapter    "flot"          : 1.10.6   , installed 1.10.6
                                Adapter    "fritzdect"     : 2.1.15   , installed 2.1.15
                                Adapter    "history"       : 1.9.13   , installed 1.9.13
                                Adapter    "hm-rega"       : 3.0.31   , installed 3.0.29 [Updateable]
                                Adapter    "hm-rpc"        : 1.14.45  , installed 1.14.43 [Updateable]
                                Adapter    "ical"          : 1.11.2   , installed 1.11.2
                                Adapter    "icons-material-png": 0.1.0   , installed 0.1.0
                                Adapter    "icons-mfd-png" : 1.0.2    , installed 1.0.2
                                Adapter    "icons-mfd-svg" : 1.0.2    , installed 1.0.2
                                Adapter    "icons-open-icon-library-png": 0.1.2   , installed 0.1.3
                                Adapter    "icons-ultimate-png": 1.0.1   , installed 1.0.1
                                Adapter    "info"          : 1.9.8    , installed 1.9.8
                                Adapter    "javascript"    : 5.2.8    , installed 5.2.8
                                Controller "js-controller" : 3.3.15   , installed 3.3.15
                                Adapter    "pushover"      : 2.0.5    , installed 2.0.5
                                Adapter    "s7"            : 1.3.6    , installed 1.3.6
                                Adapter    "shelly"        : 4.0.7    , installed 4.0.7
                                Adapter    "simple-api"    : 2.6.1    , installed 2.6.1
                                Adapter    "socketio"      : 3.1.4    , installed 3.1.4
                                Adapter    "sonos"         : 2.1.1    , installed 2.1.1
                                Adapter    "sql"           : 1.15.7   , installed 1.15.7
                                Adapter    "tankerkoenig"  : 2.1.1    , installed 2.1.1
                                Adapter    "telegram"      : 1.10.0   , installed 1.10.0
                                Adapter    "tr-064"        : 4.2.14   , installed 4.2.14
                                Adapter    "vis"           : 1.4.3    , installed 1.4.3
                                Adapter    "vis-bars"      : 0.1.4    , installed 0.1.4
                                Adapter    "vis-colorpicker": 1.2.0   , installed 1.2.0
                                Adapter    "vis-fancyswitch": 1.1.0   , installed 1.1.0
                                Adapter    "vis-google-fonts": 0.1.0   , installed 0.1.0
                                Adapter    "vis-history"   : 1.0.0    , installed 1.0.0
                                Adapter    "vis-hqwidgets" : 1.1.7    , installed 1.1.7
                                Adapter    "vis-inventwo"  : 3.1.3    , installed 3.0.11 [Updateable]
                                Adapter    "vis-jqui-mfd"  : 1.0.12   , installed 1.0.12
                                Adapter    "vis-justgage"  : 1.0.2    , installed 1.0.2
                                Adapter    "vis-players"   : 0.1.6    , installed 0.1.6
                                Adapter    "vis-plumb"     : 1.0.2    , installed 1.0.2
                                Adapter    "vis-timeandweather": 1.1.7   , installed 1.1.7
                                Adapter    "web"           : 3.4.7    , installed 3.4.7
                                Adapter    "yahka"         : 0.12.0   , installed 0.12.0
                                Adapter    "yr"            : 3.0.5    , installed 3.0.5
                                

                                Egal welchen adapter ich installieren will oder updaten will kommt der fehler

                                PS
                                Hatte erst vor kurzen das System neu aufgesetzt um Ubuntu zu updaten von 18 auf 20.04.2.0. Hat alles geklappt.
                                Danach habe kam das neue Admin und seid dem habe ich das Problem.

                                Muss ich mal NPM neuinstall ??

                                1 Reply Last reply Reply Quote 0
                                • P
                                  Pat @OliverIO last edited by

                                  @oliverio

                                  232 verbose stack Error: Unsupported engine for dns@0.2.2: wanted: {"node":">= 0.10.0 < 0.11.0"} (current: {"node":"12.22.5","npm":"6.14.14"})
                                  232 verbose stack     at checkEngine (/usr/lib/node_modules/npm/node_modules/npm-install-checks/index.js:14:14)
                                  232 verbose stack     at module.exports.isInstallable (/usr/lib/node_modules/npm/lib/install/validate-args.js:60:3)
                                  232 verbose stack     at resolveWithNewModule (/usr/lib/node_modules/npm/lib/install/deps.js:677:10)
                                  232 verbose stack     at /usr/lib/node_modules/npm/lib/install/deps.js:600:7
                                  232 verbose stack     at /usr/lib/node_modules/npm/node_modules/iferr/iferr.js:3:64
                                  232 verbose stack     at /usr/lib/node_modules/npm/node_modules/call-limit/call-limit.js:28:43
                                  232 verbose stack     at processTicksAndRejections (internal/process/task_queues.js:79:11)
                                  233 verbose pkgid dns@0.2.2
                                  234 verbose cwd /opt/iobroker
                                  235 verbose Linux 5.11.0-25-generic
                                  236 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.backitup@2.1.17" "--loglevel" "error" "--prefix" "/opt/iobroker"
                                  237 verbose node v12.22.5
                                  238 verbose npm  v6.14.14
                                  239 error code ENOTSUP
                                  240 error notsup Unsupported engine for dns@0.2.2: wanted: {"node":">= 0.10.0 < 0.11.0"} (current: {"node":"12.22.5","npm":"6.14.14"})
                                  241 error notsup Not compatible with your version of node/npm: dns@0.2.2
                                  242 error notsup Not compatible with your version of node/npm: dns@0.2.2
                                  242 error notsup Required: {"node":">= 0.10.0 < 0.11.0"}
                                  242 error notsup Actual:   {"npm":"6.14.14","node":"12.22.5"}
                                  243 verbose exit [ 1, true ]
                                  

                                  Hier ein auszug aus der LOG die erstellt wird

                                  OliverIO 1 Reply Last reply Reply Quote 0
                                  • OliverIO
                                    OliverIO @Pat last edited by

                                    @pat
                                    danke, aber das nutzt nix, da es kein fehler des adapters ist.
                                    wie gesagt der adapter selbst, noch irgendein der verwendeten pakete nutzt ein package namens dns.

                                    entweder klärt man, wie iobroker oder npm denkt warum es dns installieren sollte oder (der bevorzugte weg) du installierst npm + iobroker komplett neu.

                                    vorzugsweise empfehle ich dir iobroker in einen docker container zu packen. dadurch kannst du kreuzreaktionen mit anderen softwares, die ebenfalls noch auf ubuntu installiert sind, vermeiden.

                                    anleitung ist hier im forum zu finden oder
                                    https://hub.docker.com/r/buanet/iobroker/

                                    P 1 Reply Last reply Reply Quote 0
                                    • P
                                      Pat @OliverIO last edited by

                                      @oliverio

                                      Hey

                                      Also ich habe noch mal alles neu aufgesetzt und habe mit Backitup mein Backup wieder draufgezogen und was soll ich sagen gleicher fehler .....

                                      Diesmal habe ich mir Proxmox drauf gehauen und ubuntu in einen LC installiert und nur rein Iobroker nach der Anleitung auf der HP von IObroker installiert.

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

                                        @pat sagte in NPM ERR:

                                        habe mit Backitup mein Backup wieder draufgezogen

                                        Klar, damit knallst du den Huddel ja auch wieder in den ioBroker rein.

                                        P 1 Reply Last reply Reply Quote 1
                                        • P
                                          Pat @Thomas Braun last edited by

                                          @thomas-braun

                                          Hey
                                          Also ich habe noch ein paar versuche gestartet und ich musste wirklich alles neu aufsetzten.
                                          😰

                                          Aber war gleich mal den Anlass genutzt viele alt leichen zu entfernen.

                                          Nochmal vielen Dank für die hilfe.

                                          MfG

                                          Pat

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

                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          946
                                          Online

                                          31.9k
                                          Users

                                          80.1k
                                          Topics

                                          1.3m
                                          Posts

                                          5
                                          19
                                          1605
                                          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