Probleme bei installatin von IOBroker via Putty auf PI 3

  • Hallo Zusammen

    Vielleicht hat jemand ein Tip für mich was ich falsch gemacht habe.

    Habt etwas einsicht, , denn ich bin noch in in der Lernfphase was das ganze betrifft.


    Ich wollte eben das Video [ioBroker] Installation & Einrichtung [Tutorial] [HD] nachmachen.

    Es hat eigentlich alles gut funktioniert bist zu der Installation vom IOBroker

    Bei dem Befehl den Ordner zu erstellen, kam schon mal dass Ordner bereits existiert


    sudo mkdir
    /opt/iobroker


    Hab dann weiter gemacht mit
    sudo chmod
    777 /opt/iobroker 


    Danach den IOBroker Ordner geöffent mit
    cd
    /opt/iobroker


    Dann zum Schluss noch
    sudo npm
    install iobroker --unsafe-perm


    Allerdings startet hier heine installation sondern folgende Fehlermeldung kommt im Putty

    Last login: Sat Mar 10 13:38:55 2018 from 192.168.2.112
    root@raspberrypi:~# cd /opt/iobroker
    root@raspberrypi:/opt/iobroker# sudo npm install iobroker --unsafe-perm
    npm ERR! addLocal Could not install /opt/iobroker/iobroker --unsafe-perm
    npm ERR! Linux 4.9.59-v7+
    npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker --unsafe-perm"
    npm ERR! node v6.13.1
    npm ERR! npm v3.10.10
    npm ERR! path /opt/iobroker/iobroker --unsafe-perm
    npm ERR! code ENOENT
    npm ERR! errno -2
    npm ERR! syscall open

    npm ERR! enoent ENOENT: no such file or directory, open '/opt/iobroker/iobroker --unsafe-perm'
    npm ERR! enoent ENOENT: no such file or directory, open '/opt/iobroker/iobroker --unsafe-perm'
    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



    Das ganze mache ich unter WIN7 und greife mit Putty auf den PI 3 zu

  • Hi Jeba

    Ich bin damals nach diesem Tutorial vorgegangen und hier sind die Befehle dazu:

    ssh pi@192.168.0.112 musst du individuell anpassen:)

    Befehle

    ssh pi@192.168.0.112

    sudo apt-get update

    sudo apt-get upgrade

    sudo raspi-config

    sudo apt-get --purge remove node nodejs

    sudo apt-get autoremove

    sudo -s

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

    exit

    sudo apt-get install -y build-essential libavahi-compat-libdnssd-dev libudev-dev nodejs

    sudo mkdir /opt/iobroker

    cd /opt/iobroker

    sudo npm install iobroker --unsafe-perm

    sudo iobroker start

    Grüße Franz

    Raspberry Pi3, ioBroker, Broadlink Pro, Broadlink Mini, Harmony Hub, WD My Cloud, Funksteckdosen 433 MHz, Danny3 Sonoff Touch, Osram Smart+Plug, TP-Link HS 110 Wlan Steckdose, Xiaomi Yeelight, 2 Xiaomi Gateways + sämtliche Sensoren, Alexa, Google Home, iPad Air2, iMac.

  • Versuche mal:

    Code
    npm install -g npm@latest

    Gugst Du HIER!

    Nach der Eingabe deines Befehls, hat er ein Update pack installier.

    Bei erneuerten Versuch den IOBroker zu installieren, kommen zwar weniger Fehlermeldungen, doch die Installation startet nicht

    So wie ich das verstehe ist der Name falsch!!!!!

    root@raspberrypi:~# cd /opt/iobroker

    root@raspberrypi:/opt/iobroker# sudo npm install iobroker --unsafe-perm

    npm ERR! code EINVALIDTAGNAME

    npm ERR! Invalid tag name "iobroker --unsafe-perm": Tags may not have any characters that encodeURIComponent encodes.

    npm ERR! A complete log of this run can be found in:

    npm ERR! /root/.npm/_logs/2018-03-10T16_24_08_748Z-debug.log

    root@raspberrypi:/opt/iobroker#

  • Zeig mal das Log-File

    ( /root/.npm/_logs/2018-03-10T16_24_08_748Z-debug.log

    Da stimmt was mit deinem npm nicht.

    Hast Du den PI vorher komplett upgedatet ?

    sudo apt-get update

    sudo apt-get upgrade

    usw.

    ( siehe das , was Franz geschrieben hat )

    Sonst bleibt noch

    npm cache clean

    Du hast Problem mit npm

    Gugst Du HIER!

  • komplette Meldung

    login as: root

    root@192.168.2.124's password:

    Linux raspberrypi 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l

    The programs included with the Debian GNU/Linux system are free software;

    the exact distribution terms for each program are described in the

    individual files in /usr/share/doc/*/copyright.

    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent

    permitted by applicable law.

    Last login: Sat Mar 10 18:43:38 2018 from 192.168.2.112

    root@raspberrypi:~# cd /opt/iobroker

    root@raspberrypi:/opt/iobroker# sudo npm install iobroker --unsafe-perm

    npm ERR! code EINVALIDTAGNAME

    npm ERR! Invalid tag name "iobroker --unsafe-perm": Tags may not have any characters that encodeURIComponent encodes.

    npm ERR! A complete log of this run can be found in:

    npm ERR! /root/.npm/_logs/2018-03-10T17_48_31_551Z-debug.log

    root@raspberrypi:/opt/iobroker#

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!