Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Nodejs und npm Update

    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

    Nodejs und npm Update

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

      Das mit „family must be 4 or 6“ kann auf ein Problem mit der DNS Namensauflösung bei Dir sein.

      Prüfe z.B. die Datei(en) .npmrc auf folgende Zeile und lösche diese ggf.

      repository=http://registry.npmjs.org/npm in ~/.npmrc

      1 Reply Last reply Reply Quote 0
      • Vumer
        Vumer last edited by

        hier node 10
        2071_node10-1.jpg
        2071_node10-2.jpg

        1 Reply Last reply Reply Quote 0
        • Stabilostick
          Stabilostick last edited by

          Was für ein durcheinander…

          Du bist übrigens „root“, d.h. Admin. Da kannst Du Dir das „sudo“ sparen.

          1 Reply Last reply Reply Quote 0
          • Vumer
            Vumer last edited by

            @Stabilostick:

            Das mit „family must be 4 or 6“ kann auf ein Problem mit der DNS Namensauflösung bei Dir sein. `
            :?: ist eine VM von proxmox

            1 Reply Last reply Reply Quote 0
            • Stabilostick
              Stabilostick last edited by

              Management Summary zum Problem von Vumer: 8-)

              • Proxmox 5.x, aktuellste Version

              • Verschiedene VMs mit Debian 8, 9.0 und 9.5, 32 und 64bit getestet, installiert aus netboot-CD

              • Netzwerkkonfig "Bridged", Intel als Netzwerkkarte eingestellt

              • Host Netzwerk Konfig````
                auto lo
                iface lo inet loopback

                iface eno1 inet manual

                auto vmbr0
                iface vmbr0 inet static
                address 192.168.10.2
                netmask 255.255.255.0
                gateway 192.168.10.1
                bridge_ports eno1
                bridge_stp off
                bridge_fd 0

                
                
              • Guest hat DHCP eingeschaltet, eigene MAC jeweils pro VM

              • Fritzbox in Standardkonfiguration als DHCP- und DNS-Server, leitet DNS-Anfrage an Provider-DNS

              • Fritzbox keine Filter oder Portfreiganben für VM

              • Proxmox-Firewall in Standardkonfiguration

              • interfaces am Guest passt. dhcp. "ip addr" Ausgabe passt.````
                iface ens18 inet dhcp

                
                
              • ipv6 in Debian aktiv/ausgeschaltet ändert nichts

              • Debian.Image ist blank, kein ioBroker und kein nodejs vorher drauf.

              • Kein Proxy konfiguriert

              Ergebnis: Debian Stretch läuft. DNS-Abfragen, wget, apt-get usw. machen was sie sollen.(*)

              ****Aber: npm funktioniert unter node 8.x und 10.x nicht.

              Unabhänging von der installierten Debian-Version****

              Mit node 6 läuft npm 3 und 4, jedoch mit Verzögerung bei jeder Befehlsausführung, die sich wie ein Timeout anfühlen.

              <u>Details</u>

              Ausgabe eine npm-Installationsversuchs unter node 10:

              root@debian:~# npm i -g npm@latest --verbose
              npm info it worked if it ends with ok
              npm verb cli [ '/usr/bin/node',
              npm verb cli   '/usr/bin/npm',
              npm verb cli   'i',
              npm verb cli   '-g',
              npm verb cli   'npm@latest',
              npm verb cli   '--verbose' ]
              npm info using npm@6.2.0
              npm info using node@v10.8.0
              npm verb npm-session f2039f9ef13dcb59
              npm timing stage:rollbackFailedOptional Completed in 37ms
              npm timing stage:runTopLevelLifecycles Completed in 4739ms
              npm verb stack TypeError [ERR_INVALID_OPT_VALUE]: The value "4294967295" is invalid for option "family"
              npm verb stack     at lookup (dns.js:112:11)
              npm verb stack     at net.js:1056:5
              npm verb stack     at defaultTriggerAsyncIdScope (internal/async_hooks.js:294:19)
              npm verb stack     at lookupAndConnect (net.js:1055:3)
              npm verb stack     at TLSSocket.Socket.connect (net.js:990:5)
              npm verb stack     at Object.connect (_tls_wrap.js:1147:12)
              npm verb stack     at HttpsAgent.createConnection (https.js:119:22)
              npm verb stack     at HttpsAgent.createSocket (/usr/lib/node_modules/npm/node_modules/agentkeepalive/lib/_http_agent.js:265:26)
              npm verb stack     at HttpsAgent.createSocket (/usr/lib/node_modules/npm/node_modules/agentkeepalive/lib/agent.js:77:11)
              npm verb stack     at HttpsAgent.addRequest (/usr/lib/node_modules/npm/node_modules/agentkeepalive/lib/_http_agent.js:239:10)
              npm verb stack     at new ClientRequest (_http_client.js:239:16)
              npm verb stack     at request (https.js:272:10)
              npm verb stack     at fetch.Promise (/usr/lib/node_modules/npm/node_modules/node-fetch-npm/src/index.js:54:17)
              npm verb stack     at new Promise (<anonymous>)
              npm verb stack     at fetch (/usr/lib/node_modules/npm/node_modules/node-fetch-npm/src/index.js:41:10)
              npm verb stack     at retry (/usr/lib/node_modules/npm/node_modules/make-fetch-happen/index.js:332:14)
              npm verb cwd /root
              npm verb Linux 4.9.0-7-amd64
              npm verb argv "/usr/bin/node" "/usr/bin/npm" "i" "-g" "npm@latest" "--verbose"
              npm verb node v10.8.0
              npm verb npm  v6.2.0
              npm ERR! code ERR_INVALID_OPT_VALUE
              npm ERR! The value "4294967295" is invalid for option "family"
              npm verb exit [ 1, true ]
              npm timing npm Completed in 14000ms</anonymous>
              

              -> The value "4294967295" is invalid for option "family"

              -> "4294967295" ist -1 bei unsigned 32bit Integer.

              Nachdem npm sich Daten von https://registry.npmjs.org/npm zieht, gleich mal mit

              curl -sL https://registry.npmjs.org/npm
              

              probiert: Klappt alles.

              Also zurück zum Thema.

              ****Hallo Poxmox-Kenner 😄

              Was ist hier mit dem System und damit mit npm los?

              Warum läuft npm unter node 8 und 10 hier nicht?

              Weshalb sagt npm bei jeder Befehlsausführung, dass ein Fehler im DNS-Umfeld & falsche family (must be 4 or 6) vorliegt?****

              (+) PS: Mit der Installationsquellenauswahl von nodejs gab es hier auch Probleme. Debian hat das Debian-eigene Node bevorzugt. Das ist mir unverständlich, da wenn zwei oder mehrere Versionen eines Paketes die gleiche Priorität haben, so wird die Version mit der höchsten Versionsnummer installiert.

              Test:

              root@debian:~# apt-cache policy nodejs
              nodejs:
                Installiert:           (keine)
                Installationskandidat: 8.11.3-1nodesource1
                Versionstabelle:
                   8.11.3-1nodesource1 500
                      500 https://deb.nodesource.com/node_8.x stretch/main amd64 Packages
                   4.8.2~dfsg-1 500
                      500 http://ftp.de.debian.org/debian stretch/main amd64 Packages
              

              -> Beide Installationsquellen 500. Ist bei mir am Raspberry genau so, aber warum kommt hier node von debian.org (4.8.2) statt die 8.11.3?

              Deshalb manuelles Pinning (Steuerdatei 10node in /etc/apt/preferences.d) mit Inhalt

              Package: *
              Pin: origin deb.nodesource.com
              Pin-Priority: 1001
              

              führt zu

              root@debian:/etc/apt/preferences.d# apt-cache policy nodejs
              nodejs:
                Installiert:           (keine)
                Installationskandidat: 8.11.3-1nodesource1
                Versionstabelle:
                   8.11.3-1nodesource1 1001
                     1001 https://deb.nodesource.com/node_8.x stretch/main amd64 Packages
                   4.8.2~dfsg-1 500
                      500 http://ftp.de.debian.org/debian stretch/main amd64 Packages
              

              und damit zu klaren Verhältnissen beim Installieren.

              1 Reply Last reply Reply Quote 0
              • Vumer
                Vumer last edited by

                an dieser stelle möchte ich mich bei Stabilostick noch einmal bedanken

                besonders für die ruhige Art und verständliche Erklärung 🙂

                @Stabilostick:

                ****Aber: npm funktioniert unter node 8.x und 10.x nicht.

                Unabhänging von der installierten Debian-Version****

                Mit node 6 läuft npm 3 und 4, jedoch mit Verzögerung bei jeder Befehlsausführung, die sich wie ein Timeout anfühlen. `
                habe heute zum ersten mal Ubuntu 18.04 LTS installiert ( eigentlich alles das gleiche aber anders 😄 )

                hier tritt der Fehler auch auf

                schöne Grüße

                1 Reply Last reply Reply Quote 0
                • Stabilostick
                  Stabilostick last edited by

                  Versuche die Neuinstallation bitte auch mit dem VirtIO-Treiber von Proxmox statt mit dem Intel 1000.

                  1 Reply Last reply Reply Quote 0
                  • Vumer
                    Vumer last edited by

                    das habe ich, aber dann bekommt die VM keine IP

                    Intel, Realtek und VMware komen alle mit dem npm Fehler

                    1 Reply Last reply Reply Quote 0
                    • Stabilostick
                      Stabilostick last edited by

                      Network Device

                      Each VM can have many Network interface controllers (NIC), of four different types:

                      Intel E1000 is the default, and emulates an Intel Gigabit network card.

                      the VirtIO paravirtualized NIC should be used if you aim for maximum performance. Like all VirtIO devices, the guest OS should have the proper driver

                      the Realtek 8139 emulates an older 100 MB/s network card, and should only be used when emulating older operating systems ( released before 2002 )

                      the vmxnet3 is another paravirtualized device, which should only be used when importing a VM from another hypervisor.

                      Proxmox VE will generate for each NIC a random MAC address, so that your VM is addressable on Ethernet networks.

                      The NIC you added to the VM can follow one of two different models:

                      in the default Bridged mode each virtual NIC is backed on the host by a tap device, ( a software loopback device simulating an Ethernet NIC ). This tap device is added to a bridge, by default vmbr0 in Proxmox VE. In this mode, VMs have direct access to the Ethernet LAN on which the host is located.

                      1 Reply Last reply Reply Quote 0
                      • Stabilostick
                        Stabilostick last edited by

                        @Vumer:

                        das habe ich, aber dann bekommt die VM keine IP

                        Intel, Realtek und VMware komen alle mit dem npm Fehler `
                        Ist das auch so, wenn du den Network Nic vor dem Installieren mit dem ISO schon auf VirtIO einstellst?

                        1 Reply Last reply Reply Quote 0
                        • Vumer
                          Vumer last edited by

                          ja, dann findet debian kein DHCP. Und wenn icht dann eine feste IP vergebe kommt die VM auch nicht raus

                          1 Reply Last reply Reply Quote 0
                          • Vumer
                            Vumer last edited by

                            @Stabilostick:

                            the VirtIO paravirtualized NIC should be used if you aim for maximum performance. Like all VirtIO devices, the guest OS should have the proper driver `

                            fehlt da was?

                            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

                            502
                            Online

                            31.8k
                            Users

                            80.0k
                            Topics

                            1.3m
                            Posts

                            21
                            124
                            29717
                            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