Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. (gelöst) IOBROKER installation klappt nicht / npm Fehler

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    (gelöst) IOBROKER installation klappt nicht / npm Fehler

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

      Hi ok das klappte.Hab dann Node nachinstalliert und dann Iobroker aber es kommt die Meldung das ich es als root versuchen soll. Mache ich aber!

      root@raspberrypi:/home/pi# wget http://download.iobroker.net/nodejs0_12_6_armhf.deb
      --2016-03-14 18:59:01--  http://download.iobroker.net/nodejs0_12_6_armhf.deb
      Auflösen des Hostnamen »download.iobroker.net (download.iobroker.net)«... 5.189.159.127, 2a02:c200:1:10:3:1:51:1
      Verbindungsaufbau zu download.iobroker.net (download.iobroker.net)|5.189.159.127|:80... verbunden.
      HTTP-Anforderung gesendet, warte auf Antwort... 200 OK
      Länge: 6728900 (6,4M) [application/x-debian-package]
      In »»nodejs0_12_6_armhf.deb«« speichern.
      
      nodejs0_12_6_armhf. 100%[=====================>]   6,42M   998KB/s   in 5,7s
      
      2016-03-14 18:59:07 (1,13 MB/s) - »»nodejs0_12_6_armhf.deb«« gespeichert [6728900/6728900]
      
      root@raspberrypi:/home/pi# dpkg -i nodejs0_12_6_armhf.deb
      (Lese Datenbank ... 125413 Dateien und Verzeichnisse sind derzeit installiert.)
      Vorbereitung zum Entpacken von nodejs0_12_6_armhf.deb ...
      Entpacken von node (0.12.6-1) über (0.12.6-1) ...
      node (0.12.6-1) wird eingerichtet ...
      Trigger für man-db (2.7.0.2-5) werden verarbeitet ...
      root@raspberrypi:/home/pi# rm nodejs0_12_6_armhf.deb
      root@raspberrypi:/home/pi# cd /opt/iobroker
      root@raspberrypi:/opt/iobroker# npm install iobroker
      /
      > iobroker@0.7.0 install /opt/iobroker/node_modules/iobroker
      > node lib/setup.js
      
      npm install iobroker.js-controller --production --prefix /opt/iobroker
      npm ERR! Linux 4.1.18-v7+
      npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "iobroker.js-controller" "--production" "--prefix" "/opt/iobroker"
      npm ERR! node v0.12.6
      npm ERR! npm  v2.11.2
      npm ERR! path /root/.npm/iobroker.js-controller/0.8.7/package
      npm ERR! code EACCES
      npm ERR! errno -13
      
      npm ERR! Error: EACCES, mkdir '/root/.npm/iobroker.js-controller/0.8.7/package'
      npm ERR!     at Error (native)
      npm ERR!  { [Error: EACCES, mkdir '/root/.npm/iobroker.js-controller/0.8.7/package']
      npm ERR!   errno: -13,
      npm ERR!   code: 'EACCES',
      npm ERR!   path: '/root/.npm/iobroker.js-controller/0.8.7/package' }
      npm ERR!
      npm ERR! Please try running this command again as root/Administrator.
      
      npm ERR! Please include the following file with any support request:
      npm ERR!     /opt/iobroker/node_modules/iobroker/npm-debug.log
      npm install iobroker.admin --production --prefix /opt/iobroker
      npm ERR! Linux 4.1.18-v7+
      npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "iobroker.admin" "--production" "--prefix" "/opt/iobroker"
      npm ERR! node v0.12.6
      npm ERR! npm  v2.11.2
      npm ERR! path /root/.npm/iobroker.admin/0.8.6/package
      npm ERR! code EACCES
      npm ERR! errno -13
      
      npm ERR! Error: EACCES, mkdir '/root/.npm/iobroker.admin/0.8.6/package'
      npm ERR!     at Error (native)
      npm ERR!  { [Error: EACCES, mkdir '/root/.npm/iobroker.admin/0.8.6/package']
      npm ERR!   errno: -13,
      npm ERR!   code: 'EACCES',
      npm ERR!   path: '/root/.npm/iobroker.admin/0.8.6/package' }
      npm ERR!
      npm ERR! Please try running this command again as root/Administrator.
      
      npm ERR! Please include the following file with any support request:
      npm ERR!     /opt/iobroker/node_modules/iobroker/npm-debug.log
      Cannot install as normal user. Try sudo...
      sudo npm install iobroker.admin --production --prefix /opt/iobroker
      
      
      1 Reply Last reply Reply Quote 0
      • S
        simpixo last edited by

        Du musst erst als User Pi das Passwort für den Root User ändern! Das machst du mit

        sudo passwd Root

        Und dann musst du dich nicht als Pi sondern als Root am Raspberry Pi anmelden [emoji6]

        Ein sudo su reicht da leider nicht [emoji6]

        Gesendet von meinem iPhone mit Tapatalk

        1 Reply Last reply Reply Quote 0
        • A
          audioconcept last edited by

          Hi

          ja bei Raspbian Wheezy ging das auch immer aber bei Raspbian Jessie kann man das zwar so eingeben aber er behällt diese Änderung nicht.

          Hast du für Jessie eine genaue Anleitung was ich da machen muss?

          1 Reply Last reply Reply Quote 0
          • N
            nobody last edited by

            Ich rate mal, dass du mit ssh auf den pi zugreifst.

            Dann hilft folgendes:

            su root

            nano /etc/ssh/sshd_config

            Dann die folgende Zeile mit # auskommentieren:

            #PermitRootLogin without-password

            Datei speichern und anschließend den ssh - Dienst neu starten:

            /etc/init.d/ssh restart

            Gesendet von meinem GT-N8000 mit Tapatalk

            1 Reply Last reply Reply Quote 0
            • A
              audioconcept last edited by

              Hi

              diese Zeile ist nicht vorhanden:

              # Package generated configuration file
              # See the sshd_config(5) manpage for details
              
              # What ports, IPs and protocols we listen for
              Port 22
              # Use these options to restrict which interfaces/protocols sshd will bind to
              #ListenAddress ::
              #ListenAddress 0.0.0.0
              Protocol 2
              # HostKeys for protocol version 2
              HostKey /etc/ssh/ssh_host_rsa_key
              HostKey /etc/ssh/ssh_host_dsa_key
              HostKey /etc/ssh/ssh_host_ecdsa_key
              HostKey /etc/ssh/ssh_host_ed25519_key
              #Privilege Separation is turned on for security
              UsePrivilegeSeparation yes
              
              # Lifetime and size of ephemeral version 1 server key
              KeyRegenerationInterval 3600
              
              
              1 Reply Last reply Reply Quote 0
              • S
                simpixo last edited by

                War bei mir auch, habe das ganz vergessen. Du bearbeitest scheinbar die falsche Datei, versuche

                sudo nano /etc/ssh/sshd_config

                Die Zeile: "PermitRootLogin without-password“

                in

                "PermitRootLogin yes“

                ändern.

                Mit der Taste „F3“ oder "STRG+O“ Speichern

                mit „Strg+X“ Datei schließen.

                SSH Server neustarten z.B. mit sudo reboot

                Gesendet von meinem iPhone mit Tapatalk

                1 Reply Last reply Reply Quote 0
                • A
                  audioconcept last edited by

                  Hi

                  das steht da nicht drin:

                  root@raspberrypi:/home/pi# sudo nano /etc/ssh/sshd_config
                    GNU nano 2.2.6          Datei: /etc/ssh/sshd_config
                  
                  # Package generated configuration file
                  # See the sshd_config(5) manpage for details
                  
                  # What ports, IPs and protocols we listen for
                  Port 22
                  # Use these options to restrict which interfaces/protocols sshd will bind to
                  #ListenAddress ::
                  #ListenAddress 0.0.0.0
                  Protocol 2
                  # HostKeys for protocol version 2
                  HostKey /etc/ssh/ssh_host_rsa_key
                  HostKey /etc/ssh/ssh_host_dsa_key
                  HostKey /etc/ssh/ssh_host_ecdsa_key
                  HostKey /etc/ssh/ssh_host_ed25519_key
                  #Privilege Separation is turned on for security
                  UsePrivilegeSeparation yes
                  
                  # Lifetime and size of ephemeral version 1 server key
                  KeyRegenerationInterval 3600
                                               [ 88 Zeilen gelesen ]
                  ^G Hilfe     ^O Speichern ^R Datei öffn^Y Seite zurü^K Ausschneid^C Cursor
                  ^X Beenden   ^J Ausrichten^W Wo ist    ^V Seite vor ^U Ausschn. r^T Rechtschr.
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • S
                    simpixo last edited by

                    Drücke mal in Editor Strg + w dann kannst du suchen und gebe da einfach nur "permit" ein und bestätige mit enter! Oder navigiere mit den Pfeiltasten nach unten! Dir wird nicht die ganze Datei angezeigt [emoji6]

                    Gesendet von meinem iPhone mit Tapatalk

                    1 Reply Last reply Reply Quote 0
                    • A
                      audioconcept last edited by

                      Hi jepp hab nicht runtergescrollt. Hab es geändert. Teste es gerade mal.

                      Danke schon mal

                      Jetzt läuft es.

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

                        @audioconcept:

                        Hi jepp hab nicht runtergescrollt. Hab es geändert. Teste es gerade mal.

                        Danke schon mal

                        Jetzt läuft es. `
                        http://forum.iobroker.net/viewtopic.php?f=8&t=2451

                        1 Reply Last reply Reply Quote 0
                        • Mr. Burns
                          Mr. Burns last edited by

                          Ich würde mich gerne noch mal anhängen. Nach einem Update, funktioniert mein ioBroker nicht mehr. Also wollte ich gerne eine ganz saubere neue Installation.

                          Hardware: Raspberry Pi 3B+, Sandisc 8GB

                          Linux: RASPBIAN STRETCH LITE, Juni 2018 Kernel 4.14

                          Instalation/Einrichten:

                          ! Image über Raspberry Pi Baker auf SD kopiert
                          ! - SSH freigegeben
                          ! sudo apt-get update
                          ! sudo apt-get upgrade
                          ! sudo raspi-config
                          ! expandiert, Sprache, Zeitzone, Tastaturlayout, Name und Passwort eingestellt sowie ein update des Tool gemacht.
                          ! reboot
                          ! - feste IP-Adresse vergeben
                          ! - root via SSH freigegeben
                          ! - root Passwort vergeben

                          Deinstallation Node, Nodejs:

                          ! sudo apt-get –purge remove node
                          ! sudo apt-get --purge remove nodejs
                          ! sudo apt-get autoremove
                          ! sudo reboot

                          Als Root Node und Nodejs installieren

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

                          Ergebnis:

                          ! root@ioBroker:~# node -v
                          ! v8.11.1
                          ! root@ioBroker:~# nodejs -v
                          ! v8.11.1
                          ! root@ioBroker:~# npm -v
                          ! -bash: npm: command not found

                          Da npm nicht gefunden wird, kann auch ioBroder nicht installiert werden. Kann mir vielleicht jemand von euch auf die Sprünge helfen. Suche schon fast einen Tag nach einer Lösung…

                          Komisch finde ich auch, obwohl ich node 6.x installiere, wird als version 8.x angezeigt, oder ist das normal?

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

                            Wann war das?

                            es gibt dazu bereits mindestens zwei Threads; anscheinend aber inzwischen Entwarnung.

                            @Mr. Burns:

                            obwohl ich node 6.x installiere, wird als version 8.x angezeigt, `

                            Das ist der Punkt

                            siehe auch hier:

                            viewtopic.php?f=17&t=15382&start=40

                            Gruß

                            Rainer

                            1 Reply Last reply Reply Quote 0
                            • Mr. Burns
                              Mr. Burns last edited by

                              Hallo Rainer,

                              vielen Dank!

                              nachdem ich:

                              sudo apt-get –purge remove node nodejs

                              sudo apt-get autoremove

                              und

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

                              sudo npm install -g npm@4

                              danach konnte ich mit:

                              sudo mkdir /opt/iobroker

                              cd /opt/iobroker

                              sudo npm install iobroker --unsafe-perm

                              installieren.

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

                                Super!

                                bleibt aber meine Frage:
                                @Homoran:

                                Wann war das? `
                                Wäre schön, wenn du das mir sagen würdest.

                                Gruß

                                Rainer

                                1 Reply Last reply Reply Quote 0
                                • Mr. Burns
                                  Mr. Burns last edited by

                                  Letzte Woche hab ich meinen Raspberry Pi (2B) mit den aktuellen updates versorgt. Nach dem Neustart konnte der ioBroker nicht mehr gestartet werden. Nach einer Nachtschicht mit diversen updates, reinstalls hat dieser wieder gestartet. Allerdings stürzt dieser nach einigen Minuten immer wieder ab.

                                  Für mich nicht ersichtlich warum.

                                  Neuer Raspberry gekauft.

                                  Gestern Vormittag habe ich angefangen den neuen Raspberry neu aufzusetzen. Kurz bevor ich mich hier im Forum gemeldet habe (30min.) hatte ich noch mit einer Installation von Node und Nodejs versucht. (Nachdem ich Root Rechte per SSH vergeben habe…)

                                  Gruß

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    mafe68 last edited by

                                    Habe gerade mal einen Test gemacht und mir einen VM Debian 9.5 Netinstall aufgesetzt um zu schauen ob das Nodejs x6 paket wirklich nicht zum installieren geht.

                                    Habe mich per SSH auf der VM verbunden mich dann als root angemeldet, dass System auf den krakeelen Stand gebracht.

                                    Dann habe ich den Install Befehl genommen aus dem Git von nodesource.

                                    HOffe das hilft euch ein wenig weiter bei der Installation. Darauf ist auch zu achte ob man ein Debian oder ein Ubuntu verwendet. Da sind die Befehle unterschiedlich.

                                    curl -sL https://deb.nodesource.com/setup_6.x | bash -
                                    apt-get install -y nodejs
                                    

                                    Das ging ohne weiteres zu installieren. Das einzige er hat sich wegen den "curl" Paket beschwert das es nicht vorhanden ist. Nach er Installation konnte ich NodeJs x6 problemlos installieren.

                                    iobroker@iobroker:~$ su
                                    Password: 
                                    root@iobroker:/home/iobroker# curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
                                    bash: sudo: Kommando nicht gefunden.
                                    bash: curl: Kommando nicht gefunden.
                                    root@iobroker:/home/iobroker# apt install curl
                                    Reading package lists... Done
                                    Building dependency tree       
                                    Reading state information... Done
                                    The following additional packages will be installed:
                                      libcurl3
                                    The following NEW packages will be installed:
                                      curl libcurl3
                                    0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
                                    Need to get 519 kB of archives.
                                    After this operation, 989 kB of additional disk space will be used.
                                    Do you want to continue? [Y/n] 
                                    Get:1 http://debian.lagis.at/debian stretch/main amd64 libcurl3 amd64 7.52.1-5+deb9u6 [291 kB]
                                    Get:2 http://debian.lagis.at/debian stretch/main amd64 curl amd64 7.52.1-5+deb9u6 [228 kB]
                                    Fetched 519 kB in 0s (1831 kB/s)
                                    apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
                                    perl: warning: Setting locale failed.
                                    perl: warning: Please check that your locale settings:
                                    	LANGUAGE = "de_AT:de",
                                    	LC_ALL = (unset),
                                    	LC_TIME = "de_DE.UTF-8",
                                    	LC_MONETARY = "de_DE.UTF-8",
                                    	LC_ADDRESS = "de_DE.UTF-8",
                                    	LC_TELEPHONE = "de_DE.UTF-8",
                                    	LC_NAME = "de_DE.UTF-8",
                                    	LC_MEASUREMENT = "de_DE.UTF-8",
                                    	LC_IDENTIFICATION = "de_DE.UTF-8",
                                    	LC_NUMERIC = "de_DE.UTF-8",
                                    	LC_PAPER = "de_DE.UTF-8",
                                    	LANG = "de_AT.UTF-8"
                                        are supported and installed on your system.
                                    perl: warning: Falling back to a fallback locale ("de_AT.UTF-8").
                                    locale: Kann LC_ALL nicht auf die Standard-Lokale einstellen: Datei oder Verzeichnis nicht gefunden
                                    Selecting previously unselected package libcurl3:amd64.
                                    (Reading database ... 27056 files and directories currently installed.)
                                    Preparing to unpack .../libcurl3_7.52.1-5+deb9u6_amd64.deb ...
                                    Unpacking libcurl3:amd64 (7.52.1-5+deb9u6) ...
                                    Selecting previously unselected package curl.
                                    Preparing to unpack .../curl_7.52.1-5+deb9u6_amd64.deb ...
                                    Unpacking curl (7.52.1-5+deb9u6) ...
                                    Setting up libcurl3:amd64 (7.52.1-5+deb9u6) ...
                                    Processing triggers for libc-bin (2.24-11+deb9u3) ...
                                    Processing triggers for man-db (2.7.6.1-2) ...
                                    Setting up curl (7.52.1-5+deb9u6) ...
                                    root@iobroker:/home/iobroker# curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
                                    bash: sudo: Kommando nicht gefunden.
                                    root@iobroker:/home/iobroker# curl -sL https://deb.nodesource.com/setup_6.x | bash -
                                    
                                    ## Installing the NodeSource Node.js 6.x LTS Boron repo...
                                    
                                    ## Populating apt-get cache...
                                    
                                    + apt-get update
                                    Ign:1 http://debian.lagis.at/debian stretch InRelease
                                    Hit:2 http://debian.lagis.at/debian stretch-updates InRelease
                                    Hit:3 http://debian.lagis.at/debian stretch Release                            
                                    Hit:4 http://security.debian.org/debian-security stretch/updates InRelease     
                                    Reading package lists... Done                                           
                                    
                                    ## Installing packages required for setup: apt-transport-https...
                                    
                                    + apt-get install -y apt-transport-https > /dev/null 2>&1
                                    
                                    ## Confirming "stretch" is supported...
                                    
                                    + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_6.x/dists/stretch/Release'
                                    
                                    ## Adding the NodeSource signing key to your keyring...
                                    
                                    + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
                                    OK
                                    
                                    ## Creating apt sources list file for the NodeSource Node.js 6.x LTS Boron repo...
                                    
                                    + echo 'deb https://deb.nodesource.com/node_6.x stretch main' > /etc/apt/sources.list.d/nodesource.list
                                    + echo 'deb-src https://deb.nodesource.com/node_6.x stretch main' >> /etc/apt/sources.list.d/nodesource.list
                                    
                                    ## Running `apt-get update` for you...
                                    
                                    + apt-get update
                                    Ign:1 http://debian.lagis.at/debian stretch InRelease
                                    Hit:2 http://debian.lagis.at/debian stretch-updates InRelease
                                    Hit:3 http://security.debian.org/debian-security stretch/updates InRelease
                                    Hit:4 http://debian.lagis.at/debian stretch Release
                                    Get:5 https://deb.nodesource.com/node_6.x stretch InRelease [4635 B]
                                    Get:7 https://deb.nodesource.com/node_6.x stretch/main amd64 Packages [1006 B]
                                    Fetched 5641 B in 0s (11.2 kB/s)
                                    Reading package lists... Done
                                    
                                    ## Run `sudo apt-get install -y nodejs` to install Node.js 6.x LTS Boron and npm
                                    ## You may also need development tools to build native addons:
                                         sudo apt-get install gcc g++ make
                                    ## To install the Yarn package manager, run:
                                         curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
                                         echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
                                         sudo apt-get update && sudo apt-get install yarn
                                    
                                    root@iobroker:/home/iobroker# apt-get install -y nodejs
                                    Reading package lists... Done
                                    Building dependency tree       
                                    Reading state information... Done
                                    The following NEW packages will be installed:
                                      nodejs
                                    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
                                    Need to get 10.1 MB of archives.
                                    After this operation, 45.6 MB of additional disk space will be used.
                                    Get:1 https://deb.nodesource.com/node_6.x stretch/main amd64 nodejs amd64 6.14.3-1nodesource1 [10.1 MB]
                                    Fetched 10.1 MB in 3s (2849 kB/s) 
                                    apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
                                    perl: warning: Setting locale failed.
                                    perl: warning: Please check that your locale settings:
                                    	LANGUAGE = "de_AT:de",
                                    	LC_ALL = (unset),
                                    	LC_TIME = "de_DE.UTF-8",
                                    	LC_MONETARY = "de_DE.UTF-8",
                                    	LC_ADDRESS = "de_DE.UTF-8",
                                    	LC_TELEPHONE = "de_DE.UTF-8",
                                    	LC_NAME = "de_DE.UTF-8",
                                    	LC_MEASUREMENT = "de_DE.UTF-8",
                                    	LC_IDENTIFICATION = "de_DE.UTF-8",
                                    	LC_NUMERIC = "de_DE.UTF-8",
                                    	LC_PAPER = "de_DE.UTF-8",
                                    	LANG = "de_AT.UTF-8"
                                        are supported and installed on your system.
                                    perl: warning: Falling back to a fallback locale ("de_AT.UTF-8").
                                    locale: Kann LC_ALL nicht auf die Standard-Lokale einstellen: Datei oder Verzeichnis nicht gefunden
                                    Selecting previously unselected package nodejs.
                                    (Reading database ... 27079 files and directories currently installed.)
                                    Preparing to unpack .../nodejs_6.14.3-1nodesource1_amd64.deb ...
                                    Unpacking nodejs (6.14.3-1nodesource1) ...
                                    Setting up nodejs (6.14.3-1nodesource1) ...
                                    Processing triggers for man-db (2.7.6.1-2) ...
                                    root@iobroker:/home/iobroker# apt update
                                    Ign:1 http://debian.lagis.at/debian stretch InRelease
                                    Hit:2 http://debian.lagis.at/debian stretch-updates InRelease
                                    Hit:3 http://security.debian.org/debian-security stretch/updates InRelease
                                    Hit:4 http://debian.lagis.at/debian stretch Release
                                    Hit:5 https://deb.nodesource.com/node_6.x stretch InRelease
                                    Reading package lists... Done
                                    Building dependency tree       
                                    Reading state information... Done
                                    All packages are up to date.
                                    root@iobroker:/home/iobroker# curl -sL https://deb.nodesource.com/setup_6.x | bash -
                                    
                                    ## Installing the NodeSource Node.js 6.x LTS Boron repo...
                                    
                                    ## Populating apt-get cache...
                                    
                                    + apt-get update
                                    Ign:1 http://debian.lagis.at/debian stretch InRelease
                                    Hit:2 http://debian.lagis.at/debian stretch-updates InRelease
                                    Hit:3 http://security.debian.org/debian-security stretch/updates InRelease
                                    Hit:4 http://debian.lagis.at/debian stretch Release
                                    Hit:5 https://deb.nodesource.com/node_6.x stretch InRelease
                                    Reading package lists... Done
                                    
                                    ## Confirming "stretch" is supported...
                                    
                                    + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_6.x/dists/stretch/Release'
                                    
                                    ## Adding the NodeSource signing key to your keyring...
                                    
                                    + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
                                    OK
                                    
                                    ## Creating apt sources list file for the NodeSource Node.js 6.x LTS Boron repo...
                                    
                                    + echo 'deb https://deb.nodesource.com/node_6.x stretch main' > /etc/apt/sources.list.d/nodesource.list
                                    + echo 'deb-src https://deb.nodesource.com/node_6.x stretch main' >> /etc/apt/sources.list.d/nodesource.list
                                    
                                    ## Running `apt-get update` for you...
                                    
                                    + apt-get update
                                    Ign:1 http://debian.lagis.at/debian stretch InRelease
                                    Hit:2 http://debian.lagis.at/debian stretch-updates InRelease
                                    Hit:3 http://security.debian.org/debian-security stretch/updates InRelease
                                    Hit:4 http://debian.lagis.at/debian stretch Release
                                    Hit:5 https://deb.nodesource.com/node_6.x stretch InRelease
                                    Reading package lists... Done
                                    
                                    ## Run `sudo apt-get install -y nodejs` to install Node.js 6.x LTS Boron and npm
                                    ## You may also need development tools to build native addons:
                                         sudo apt-get install gcc g++ make
                                    ## To install the Yarn package manager, run:
                                         curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
                                         echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
                                         sudo apt-get update && sudo apt-get install yarn
                                    
                                    root@iobroker:/home/iobroker# nodejs -v
                                    v6.14.3
                                    root@iobroker:/home/iobroker# npm -v
                                    3.10.10
                                    root@iobroker:/home/iobroker# 
                                    
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      mafe68 last edited by

                                      Bin hier gerade am weiter forschen. Habe ich mit zu früh gefreut das node, nodejs und npm installiert wird. Bei der Installation von ioBorker gibt es dann die Probleme.

                                      Wenn man den Befehl ausführen will unter /opt/iobroker
                                      > npm install iobroker –unsafe-perm
                                      Da kommen dann jede Menge error

                                      root@iobroker:/opt/iobroker# npm install --unsafe-perm iobroker
                                      npm ERR! not a package /opt/iobroker/iobroker
                                      npm ERR! addLocal Could not install /opt/iobroker/iobroker
                                      npm ERR! Linux 4.9.0-7-amd64
                                      npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "--unsafe-perm" "iobroker"
                                      npm ERR! node v6.14.3
                                      npm ERR! npm  v3.10.10
                                      npm ERR! path /tmp/npm-1236-88d2e991/unpack-03c99222/package.json
                                      npm ERR! code ENOENT
                                      npm ERR! errno -2
                                      npm ERR! syscall open
                                      
                                      npm ERR! enoent ENOENT: no such file or directory, open '/tmp/npm-1236-88d2e991/unpack-03c99222/package.json'
                                      npm ERR! enoent ENOENT: no such file or directory, open '/tmp/npm-1236-88d2e991/unpack-03c99222/package.json'
                                      npm ERR! enoent This is most likely not a problem with npm itself
                                      npm ERR! enoent and is related to npm not being able to find a file.
                                      npm ERR! enoent 
                                      
                                      npm ERR! Please include the following file with any support request:
                                      npm ERR!     /opt/iobroker/npm-debug.log
                                      
                                      

                                      Hier auch noch der Log aus /opt/iobroker/npm-debug.log Hoffe das hilft euch weiter.

                                      0 info it worked if it ends with ok
                                      1 verbose cli [ '/usr/bin/node',
                                      1 verbose cli   '/usr/bin/npm',
                                      1 verbose cli   'install',
                                      1 verbose cli   '--unsafe-perm',
                                      1 verbose cli   'iobroker' ]
                                      2 info using npm@3.10.10
                                      3 info using node@v6.14.3
                                      4 silly loadCurrentTree Starting
                                      5 silly install loadCurrentTree
                                      6 silly install readLocalPackageData
                                      7 silly fetchPackageMetaData iobroker
                                      8 silly fetchOtherPackageData iobroker
                                      9 silly cache add args [ 'iobroker', null ]
                                      10 verbose cache add spec iobroker
                                      11 silly cache add parsed spec Result {
                                      11 silly cache add   raw: 'iobroker',
                                      11 silly cache add   scope: null,
                                      11 silly cache add   escapedName: 'iobroker',
                                      11 silly cache add   name: null,
                                      11 silly cache add   rawSpec: 'iobroker',
                                      11 silly cache add   spec: '/opt/iobroker/iobroker',
                                      11 silly cache add   type: 'local' }
                                      12 silly addLocalTarball shasum (computed) 172d89ea6df6ab508c7b69dc0540b583db07e40c
                                      13 verbose addTmpTarball /opt/iobroker/iobroker not in flight; adding
                                      14 verbose correctMkdir /root/.npm correctMkdir not in flight; initializing
                                      15 verbose addTmpTarball validating metadata from /opt/iobroker/iobroker
                                      16 verbose tar unpack /opt/iobroker/iobroker
                                      17 verbose tar unpacking to /tmp/npm-1236-88d2e991/unpack-03c99222
                                      18 silly gentlyRm /tmp/npm-1236-88d2e991/unpack-03c99222 is being purged
                                      19 verbose gentlyRm don't care about contents; nuking /tmp/npm-1236-88d2e991/unpack-03c99222
                                      20 silly gunzTarPerm modes [ '755', '644' ]
                                      21 error not a package /opt/iobroker/iobroker
                                      22 error addLocal Could not install /opt/iobroker/iobroker
                                      23 silly fetchPackageMetaData Error: ENOENT: no such file or directory, open '/tmp/npm-1236-88d2e991/unpack-03c99222/package.json'
                                      23 silly fetchPackageMetaData     at Error (native)
                                      23 silly fetchPackageMetaData  error for iobroker { Error: ENOENT: no such file or directory, open '/tmp/npm-1236-88d2e991/unpack-03c99222/package.json'
                                      23 silly fetchPackageMetaData     at Error (native)
                                      23 silly fetchPackageMetaData   errno: -2,
                                      23 silly fetchPackageMetaData   code: 'ENOENT',
                                      23 silly fetchPackageMetaData   syscall: 'open',
                                      23 silly fetchPackageMetaData   path: '/tmp/npm-1236-88d2e991/unpack-03c99222/package.json' }
                                      24 silly rollbackFailedOptional Starting
                                      25 silly rollbackFailedOptional Finishing
                                      26 silly runTopLevelLifecycles Finishing
                                      27 silly install printInstalled
                                      28 verbose stack Error: ENOENT: no such file or directory, open '/tmp/npm-1236-88d2e991/unpack-03c99222/package.json'
                                      28 verbose stack     at Error (native)
                                      29 verbose cwd /opt/iobroker
                                      
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • V
                                        Videonisse last edited by

                                        Probiere mal npm auf v4 zu upgraden. Ich hatte Probleme sowie mit npm v3.x als mit v6.

                                        npm install -g npm@4

                                        Es ist auch möglich es gibts ein alten lokalen Version 2.x auf npm in ein von die Unterverzeichnisse von ioBroker. Die kann entfernt werden.

                                        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

                                        1.0k
                                        Online

                                        31.7k
                                        Users

                                        79.6k
                                        Topics

                                        1.3m
                                        Posts

                                        10
                                        43
                                        17016
                                        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