Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. IOBroker auf Ubuntu 16.04 LTS

    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

    IOBroker auf Ubuntu 16.04 LTS

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

      @dwm:

      Tag zusammen,

      ich hab gestern mal versucht, iobroker auf einem Ubuntu 16.04 zum Laufen zu bringen…

      Nach einigen Versuchen hat's auch so einigermassen geklappt: Vielleicht spart's ja dem einen oder anderen Zeit:

      sudo passwd root
      su -l root
      apt-get install npm
      ln -s /usr/bin/nodejs /usr/bin/node
      cd /opt
      mkdir iobroker
      chmod 777 iobroker
      cd iobroker
      npm install --unsafe-perm iobroker
      
      

      Da kamen zwar immer noch Warnungen, aber iobroker startet, kann Adapter instantiieren und scheint auch im Großen und ganzen zu funktionieren.

      Wichtig ist der link von /usr/bin/nodejs auf /usr/bin/node !! … und ohne --unsafe-perm fällt das install auch aufs Gesicht.

      Das gesetzte Passwort von root kann man nachher wieder löschen ...

      Ich hab auch mal versucht, ein neueres nodejs direkt zu ziehen wie hier oft beschrieben, das bewirkt seltsame Dinge mit den in der Paketverwaltung hinterlegten Abhängigkeiten ...

      So weit so gut.

      Grade versuche ich jetzt, noch Adapter zu installieren, und ...

      >iobroker add history
      host.ubuntu install adapter history
      npm install --production --prefix "/opt/iobroker/node_modules/iobroker.history" (System call)
      npm ERR! Linux 4.4.0-24-generic
      npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production" "--prefix" "/opt/iobroker/node_modules/iobroker.history"
      npm ERR! node v4.2.6
      npm ERR! npm  v3.5.2
      
      npm ERR! Cannot read property 'target' of null
      npm ERR! 
      npm ERR! If you need help, you may report this error at:
      npm ERR!     <https: github.com/npm/issues="">npm ERR! Please include the following file with any support request:
      npm ERR!     /opt/iobroker/npm-debug.log
      Cannot install iobroker.history: 1</https:> 
      

      Also was gestern super geklappt hat, schlägt heute auf.

      Hat evt. jemand eine Idee, was jetzt kaputt ist?

      1000x

      Werner `
      Diese "target"-Fehler ist Merkmal von npm@3

      Schreibe "npm install -g npm@latest-2".

      Dann sollte gehen.

      1 Reply Last reply Reply Quote 0
      • D
        dwm last edited by

        ` > Diese "target"-Fehler ist Merkmal von npm@3

        Schreibe "npm install -g npm@latest-2".

        Dann sollte gehen. `

        Das hats gebracht! Klappt wieder - vielen Dank!

        Werner

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

          Dann probiere ich das heute Abend auf dem Pine64 auch mal aus …

          Der klemmt manchmal auch an diesen Ecken.

          Bisher habe ich es nur mit

          npm install npm -g

          probiert.

          Gruß,

          Eric

          1 Reply Last reply Reply Quote 0
          • V
            VolkerB last edited by

            Hallo Gemeinde,

            habe nach etlichen erfolglosen Veruchen, ioBroker zum laufen zu bringen, diese Anleitung gefunden.

            Meine Umgebung: Intel NUC (i3) mit Ubuntu Server 16.04.1. Mit folgenden Kommandos ließ sich ioBroker dann installieren.

            $ sudo apt install nodejs npm
            $ nodejs -v
            v4.2.6
            $ npm -v
            3.5.2
            $ ln -s /usr/bin/nodejs /usr/bin/node
            $ cd /opt
            $ mkdir iobroker
            $ chmod 777 iobroker
            $ cd iobroker
            $ npm install --unsafe-perm iobroker
            
            

            Soweit so gut. Ich konnte direkt danach über die Webschnittstelle einige Adapter installieren, konfigurieren und starten. Nach einigen tagen Testlauf wollte ich dann weitere Adapter über die Webschnittstelle nachinstallieren aber immer die selbe Fehlermeldung wie weiter oben im Artikel.

            Dann habe ich es mit dem Tipp ausprobiert, das NPM Kommando zu modifizieren:

            $ cd /opt/iobroker
            $ sudo npm install -g npm@latest-2 install iobroker.geofency
            
            

            Das hat funktioniert mit einigen Warnungen etc. Habe auch andere Adapter so installiert. Neustart von iobroker.

            Zurück im Webinterface finde ich aber keine Instanz des Adapters vor sondern nur die Angabe, dass einer installiert sei, sonst nichts.
            filename="2016-08-03%2013_57_25-ioBroker.admin.png" index="0">~~
            Das Ähnliche passiert bei anderen Adaptern auch.

            Hat jemand einen Tipp? Sonst muss ich doch wieder auf das gute alte CCU.IO zurück fallen 🙂

            1 Reply Last reply Reply Quote 0
            • W
              willy10 last edited by

              Habe heute auchmal Ubuntu instaliert.(18.04)

              Ich habe mich mal an meine Vorredner gehalten. Das ging aber in die Hose.

              Was bei mir funktioniert hatte:

              $ sudo apt install nodejs npm

              $ nodejs -v

              v4.2.6

              $ npm -v

              3.5.2

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

              GANZ WICHTIG FÜR: UBUNTU:

              npm install -g npm@4

              apt install node-pre-gyp

              $ cd /opt

              $ sudo mkdir iobroker

              $ sudo chmod 777 iobroker

              $ cd iobroker

              $ npm install –unsafe-perm iobroker

              Das hat endlich geklappt. Erspart vieleicht manchen anderen viel sucherei..

              Gruss

              Willy

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

                Der thread ist ja sehr alt. Ich habe auch schon auf Ubuntu 16.04 und 18.04 ioBroker installiert. Ich habe mich dabei genau an die Anleitung gehalten und es hat ohne Probleme funktioniert:

                http://www.iobroker.net/docu/?page_id=5106&lang=de

                1 Reply Last reply Reply Quote 0
                • W
                  willy10 last edited by

                  Bei mir nur mit den Paketen:

                  npm install -g npm@4

                  apt install node-pre-gyp

                  Das der sehr alt ist hatte ich nicht bemerkt.

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

                    Fein node ist zu alt

                    Node 8.x solltest du haben.

                    Gruß Rainer

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

                      @lobomau:

                      Der thread ist ja sehr alt. Ich habe auch schon auf Ubuntu 16.04 und 18.04 ioBroker installiert. Ich habe mich dabei genau an die Anleitung gehalten und es hat ohne Probleme funktioniert:

                      http://www.iobroker.net/docu/?page_id=5106&lang=de `

                      Genau so auch bei mir 🙂

                      1 Reply Last reply Reply Quote 0
                      • F
                        frank62 last edited by

                        @dwm:

                        Da kamen zwar immer noch Warnungen, `
                        Moin, welche Warnungen?

                        1 Reply Last reply Reply Quote 0
                        • D
                          dwm last edited by

                          Kann ich nach zwei Jahren jetzt ehrlich nicht mehr sagen …wie schon bemerkt, der Thread ist schon ... älter.

                          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

                          555
                          Online

                          31.9k
                          Users

                          80.1k
                          Topics

                          1.3m
                          Posts

                          9
                          12
                          12719
                          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