NEWS
Nach Update läuft nichts mehr!
-
@SaschaS
Gut mach einsudo rm -r /usr/lib/node_modules/npm
-
@Wal Jetzt finde ich den Schritt schon schöner.
pi@raspberrypi:/opt/iobroker $ sudo rm -r /usr/lib/node_modules/npm pi@raspberrypi:/opt/iobroker $ sudo apt --purge remove nodejs Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig Paket »nodejs« ist nicht installiert, wird also auch nicht entfernt. 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Next?
-
curl -sL https://deb.nodesource.com/setup_12.x | bash - sudo apt install nodejs
-
@Wal Ne..wäre zu schön gewesen.
pi@raspberrypi:/opt/iobroker $ curl -sL https://deb.nodesource.com/setup_12.x | bash - ## Installing the NodeSource Node.js 12.x repo... ## Populating apt-get cache... + apt-get update Paketlisten werden gelesen... Fertig W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Die Operation ist nicht erlaubt) E: Sperrdatei /var/lib/apt/lists/lock konnte nicht geöffnet werden. - open (13: Keine Berechtigung) E: Das Verzeichnis /var/lib/apt/lists/ kann nicht gesperrt werden. W: Problem beim Entfernen (unlink) der Datei /var/cache/apt/pkgcache.bin - RemoveCaches (13: Keine Berechtigung) W: Problem beim Entfernen (unlink) der Datei /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Keine Berechtigung) Error executing command, exiting
-
@SaschaS
mein fehlercurl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - sudo apt install nodejs
-
@Wal Kein Ding. Ich hab einfach mal kombiniert und es mit
pi@raspberrypi:/opt/iobroker $ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
gestartet. Damit fängt er jetzt schon einmal an.
-
@Wal Macht es einen Unterschied ob ich mit sudo apt install nodejs oder sudo apt-get install -y nodejs fortfahre? Falls ja, worin liegt dieser?
pi@raspberrypi:/opt/iobroker $ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - ## Installing the NodeSource Node.js 12.x repo... ## Populating apt-get cache... + apt-get update OK:1 http://phoscon.de/apt/deconz stretch InRelease Holen:2 http://archive.raspberrypi.org/debian stretch InRelease [25,4 kB] Holen:3 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15,0 kB] Holen:4 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages [11,7 MB] Holen:5 http://archive.raspberrypi.org/debian stretch/main armhf Packages [201 kB] Es wurden 11,9 MB in 17 s geholt (678 kB/s). Paketlisten werden gelesen... Fertig ## Confirming "stretch" is supported... + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_12.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 12.x repo... + echo 'deb https://deb.nodesource.com/node_12.x stretch main' > /etc/apt/sources.list.d/nodesource.list + echo 'deb-src https://deb.nodesource.com/node_12.x stretch main' >> /etc/apt/sources.list.d/nodesource.list ## Running `apt-get update` for you... + apt-get update OK:1 http://archive.raspberrypi.org/debian stretch InRelease OK:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease OK:3 http://phoscon.de/apt/deconz stretch InRelease Holen:4 https://deb.nodesource.com/node_12.x stretch InRelease [4.585 B] Holen:5 https://deb.nodesource.com/node_12.x stretch/main armhf Packages [775 B] Es wurden 5.360 B in 2 s geholt (2.030 B/s). Paketlisten werden gelesen... Fertig ## Run `sudo apt-get install -y nodejs` to install Node.js 12.x 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
-
https://itrig.de/index.php?/archives/2316-apt-vs.-apt-get-Was-ist-der-Unterschied.html
apt ist "neuer", aber macht keinen Unterschied. Höchstens durch einen Farbbalken , den du manchmal beim Installieren sieht. -
@SaschaS
nein macht nichts, mit -y brauchst du nicht bestätigen -
@SaschaS das war nur ein Hinweis zum nachlesen
-
Ich will ja auch was dazu lernen. Hab mir den Hinweis durchgelesen und lasse gerade den install laufen.
-
Ich kann keine Fehlermeldung erkennen...Hä? Das wird doch jetzt nicht geklappt haben.
pi@raspberrypi:/opt/iobroker $ sudo apt install -y nodejs Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig Die folgenden NEUEN Pakete werden installiert: nodejs 0 aktualisiert, 1 neu installiert, 0 zu entfernen und 29 nicht aktualisiert. Es müssen 15,9 MB an Archiven heruntergeladen werden. Nach dieser Operation werden 83,8 MB Plattenplatz zusätzlich benutzt. Holen:1 https://deb.nodesource.com/node_12.x stretch/main armhf nodejs armhf 12.16.3-1nodesource1 [15,9 MB] Es wurden 15,9 MB in 3 s geholt (4.202 kB/s). Vormals nicht ausgewähltes Paket nodejs wird gewählt. (Lese Datenbank ... 55248 Dateien und Verzeichnisse sind derzeit installiert.) Vorbereitung zum Entpacken von .../nodejs_12.16.3-1nodesource1_armhf.deb ... Entpacken von nodejs (12.16.3-1nodesource1) ... nodejs (12.16.3-1nodesource1) wird eingerichtet ... Trigger für man-db (2.7.6.1-2) werden verarbeitet
pi@raspberrypi:/opt/iobroker $ node -v v12.16.3 pi@raspberrypi:/opt/iobroker $ nodejs -v v12.16.3 pi@raspberrypi:/opt/iobroker $ npm -v 6.14.4
-
@Wal Das würde ich ja schon fast als kleines Etappenziel betrachten.
Ich mach mal einen Reboot und dann versuche ich noch einmal
cd /opt/iobroker iobroker version iobroker update iobroker upgrade iobroker stop iobroker upgrade self iobroker rebuild iobroker start
-
@SaschaS
ok, jetzt in den Ordner /opt/iobroker -
@SaschaS
ok ich war zu langsam -
@Wal Bin in dem Ordner. Habe aber noch nichts ausgeführt außer reboot.
Frage btw warum sind wir nur auf node 12 gegangen, wenn es schon die 14 gibt? Ich will das ganze Prozedur nicht nochmal machen müssen -
Weil 12 empfohlen wird und 14 noch nicht stabil mit den Adaptern läuft.
-
@SaschaS weil V14 noch nicht ganz ausgereift ist und noch nicht 100% unterstützt wird
@haselchen die entscheidenden millisekunden -
Versprochen, wenn die Corona Regeln aufgehoben werden, hauen wir uns auf meine Kosten einen rein
-
@crunchip und @haselchen valide Antwort. Akzeptiert
@Wal Wieder Rechteprobleme mit iobroker upgradeMit sudo iobroker upgrade probieren? Oder Wieder Rechte für iobroker vergeben?
pi@raspberrypi:/opt/iobroker $ iobroker upgrade Update admin from @3.7.8 to @4.0.10 host.raspberrypi Adapter "system.adapter.admin.0" is stopped. NPM version: 6.14.2 npm install iobroker.admin@4.0.10 --loglevel error --prefix "/opt/iobroker" (System call) npm ERR! code EACCES npm ERR! syscall access npm ERR! path /opt/iobroker/node_modules/iobroker.admin npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, access '/opt/iobroker/node_modules/iobroker.admin' npm ERR! { Error: EACCES: permission denied, access '/opt/iobroker/node_modules/iobroker.admin' npm ERR! stack: 'Error: EACCES: permission denied, access \'/opt/iobroker/node_modules/iobroker.admin\'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/opt/iobroker/node_modules/iobroker.admin' } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator. npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2020-05-21T13_35_26_358Z-debug.log host.raspberrypi Cannot install iobroker.admin@4.0.10: 243