NEWS
Update Node.js
-
/usr/bin/node -v
v6.11.4 `
Das sieht gut aus. Die alte Version /usr/local/bin/node schiebt sich im Suchpfad nach vorn und sollte gelöscht werden.sudo rm /usr/local/bin/node node -v npm -vnode -v sollte v6.11.4 und npm -v sollte 3.10.10 liefern.
-
pi@raspberrypi:~ $ sudo rm /usr/local/bin/npm
pi@raspberrypi:~ $ npm -v
-bash: /usr/local/bin/npm: No such file or directorypi@raspberrypi:~ $
Ich verzweifle! `
iobroker stop apt-get --purge remove node apt-get --purge remove nodejs apt-get autoremove reboot curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - sudo apt-get install -y build-essential python nodejs npmSo?
-
pi@raspberrypi:~ $ sudo apt-get install -y build-essential python nodejs npm
Reading package lists… Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
python is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
nodejs : Conflicts: npm
E: Unable to correct problems, you have held broken packages.
pi@raspberrypi:~ $ node -v
-bash: node: command not found
pi@raspberrypi:~ $ npm -v
-bash: npm: command not found
-
nodejs wurde nicht installiert, weil
@wake2010:The following packages have unmet dependencies:
nodejs : Conflicts: npm
E: Unable to correct problems, you have held broken packages. `
Es scheint noch ein falsches NPM-Packet zu existieren ? Versuche nochmal:sudo apt-get purge node sudo apt-get purge nodejs sudo apt-get purge npm sudo apt-get autoremove sudo rebootNach dem Einloggen
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - sudo apt-get install -y nodejs node -v npm -v /usr/bin/node -v -
-
Eventuell noch einen reinstall.sh hinterher `
Dazu sollte erst getestet werden, ob die Datei reinstall.sh in Linux-Format vorliegt.ls -l /opt/iobroker/reinstall.sh -rwxrwxrwx 1 root root 654 Aug 23 16:39 /opt/iobroker/reinstall.shWenn die Datei ca. 654 Byte groß ist, ist sie im Linux-Format; ist sie mehr als 680 Byte groß, muss sie erst in das Linux-Format gebracht werden, z.B. mit Notepad++. Dann ausführen
cd /opt/iobroker sudo ./reinstall.sh iobroker startEDIT: Das würde ich aber nur veranstalten, wenn bei Start von ioBroker irgendein Error-Log erzeugt wird. Ansonsten gilt: Never touch a running system.
-
…muss sie erst in das Linux-Format gebracht werden, z.B. mit Notepad++. `
Das geht auch auf der Linux Kommandozeile:mv /opt/iobroker/reinstall.sh /opt/iobroker/reinstall.dos tr -d '\r' < /opt/iobroker/reinstall.dos > /opt/iobroker/reinstall.sh -
pi@raspberrypi:/opt/iobroker $ iobroker start
Starting iobroker controller daemon…
iobroker controller daemon failed to start: Failed to write pidfile (EACCES)
Error: Failed to write pidfile (EACCES)
Reinstall.sh funktioniert auch nicht
-
UPS! :shock:
Leider startet ioBroker nicht mehr automatisch `
Die Schritte befolgt für autostart welche ab ender der Installation stehen?
Die muss man manuell machen wenn man mit sudo und nicht root installiert
–-----------------------
Send from mobile device
-