NEWS
Raspberry Pi NodeJS update aber NPM hat die flasche Version
-
Hallo.
ich habe gestern auf meine Slave Raspberry Pi 3b ein Nodejs update auf 16.17.1 gemacht.
Leider ist die NPM Version noch immer auf Version 6.14.8.
Wie bekomme ich das hin, dass alles wieder richtig ist?
Vielen Dank!
-
-
Jetzt habe ich sehr wahrscheinlich irgendwas zerschossen!
pi@ioBroker-RasPi:~ $ which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs /usr/bin/nodejs v16.17.1 /usr/bin/node v16.17.1 /usr/bin/npm /usr/lib/node_modules/npm/node_modules/socks-proxy-agent/dist/index.js:110 class SocksProxyAgent extends agent_base_1.Agent { ^ TypeError: Class extends value undefined is not a constructor or null at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/socks-proxy-agent/dist/index.js:110:44) at Module._compile (node:internal/modules/cjs/loader:1126:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10) at Module.load (node:internal/modules/cjs/loader:1004:32) at Function.Module._load (node:internal/modules/cjs/loader:839:12) at Module.require (node:internal/modules/cjs/loader:1028:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/make-fetch-happen/lib/agent.js:174:29) at Module._compile (node:internal/modules/cjs/loader:1126:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10) at Module.load (node:internal/modules/cjs/loader:1004:32) at Function.Module._load (node:internal/modules/cjs/loader:839:12) at Module.require (node:internal/modules/cjs/loader:1028:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/make-fetch-happen/lib/remote.js:7:18) at Module._compile (node:internal/modules/cjs/loader:1126:14)
-
iobroker stop sudo apt install --reinstall nodejs iobroker start
-
Und die letzte Version des Checks ist:
uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
-
@thomas-braun said in Raspberry Pi NodeJS update aber NPM hat die flasche Version:
uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
pi@ioBroker-RasPi:~ $ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs armv7l /usr/bin/nodejs /usr/bin/node /usr/bin/npm v16.17.1 v16.17.1 /usr/lib/node_modules/npm/node_modules/socks-proxy-agent/dist/index.js:110 class SocksProxyAgent extends agent_base_1.Agent { ^ TypeError: Class extends value undefined is not a constructor or null at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/socks-proxy-agent/dist/index.js:110:44) at Module._compile (node:internal/modules/cjs/loader:1126:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10) at Module.load (node:internal/modules/cjs/loader:1004:32) at Function.Module._load (node:internal/modules/cjs/loader:839:12) at Module.require (node:internal/modules/cjs/loader:1028:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/make-fetch-happen/lib/agent.js:174:29) at Module._compile (node:internal/modules/cjs/loader:1126:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10) at Module.load (node:internal/modules/cjs/loader:1004:32) at Function.Module._load (node:internal/modules/cjs/loader:839:12) at Module.require (node:internal/modules/cjs/loader:1028:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/make-fetch-happen/lib/remote.js:7:18) at Module._compile (node:internal/modules/cjs/loader:1126:14)
-
Hast du reinstalliert?
-
ja, hab ich gemacht.
pi@ioBroker-RasPi:~ $ iobroker stop pi@ioBroker-RasPi:~ $ sudo apt install --reinstall nodejs Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig 0 aktualisiert, 0 neu installiert, 1 erneut installiert, 0 zu entfernen und 0 nicht aktualisiert. Es müssen noch 0 B von 24,1 MB an Archiven heruntergeladen werden. Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt. (Lese Datenbank ... 60491 Dateien und Verzeichnisse sind derzeit installiert.) Vorbereitung zum Entpacken von .../nodejs_16.17.1-deb-1nodesource1_armhf.deb ... Entpacken von nodejs (16.17.1-deb-1nodesource1) über (16.17.1-deb-1nodesource1) ... nodejs (16.17.1-deb-1nodesource1) wird eingerichtet ... Trigger für man-db (2.8.5-2) werden verarbeitet ...
-
sudo rm -rf /usr/lib/node_modules/npm sudo apt install --reinstall nodejs
-
@thomas-braun hat funktioniert!
Vielen Dank! -
Wie sieht
uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
nun aus?
-
@thomas-braun said in Raspberry Pi NodeJS update aber NPM hat die flasche Version:
uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
pi@ioBroker-RasPi:~ $ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs armv7l /usr/bin/nodejs /usr/bin/node /usr/bin/npm v16.17.1 v16.17.1 8.15.0 4.0.23 pi pi adm tty dialout cdrom sudo audio video plugdev games users input netdev gpio i2c spi iobroker /home/pi OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease OK:2 http://archive.raspberrypi.org/debian buster InRelease OK:3 http://repo.mysql.com/apt/debian buster InRelease OK:4 https://deb.nodesource.com/node_16.x buster InRelease Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig Alle Pakete sind aktuell. N: Das Laden der konfigurierten Datei »mysql-apt-config/binary-armhf/Packages« wird übersprungen, da das Depot »http://repo.mysql.com/apt/debian buster InRelease« die Architektur »armhf« nicht unterstützt. N: Das Laden der konfigurierten Datei »mysql-8.0/binary-armhf/Packages« wird übersprungen, da das Depot »http://repo.mysql.com/apt/debian buster InRelease« die Architektur »armhf« nicht unterstützt. N: Das Laden der konfigurierten Datei »mysql-tools/binary-armhf/Packages« wird übersprungen, da das Depot »http://repo.mysql.com/apt/debian buster InRelease« die Architektur »armhf« nicht unterstützt. nodejs: Installiert: 16.17.1-deb-1nodesource1 Installationskandidat: 16.17.1-deb-1nodesource1 Versionstabelle: *** 16.17.1-deb-1nodesource1 500 500 https://deb.nodesource.com/node_16.x buster/main armhf Packages 100 /var/lib/dpkg/status 10.24.0~dfsg-1~deb10u2 500 500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
-
Schau dir das mysql Repository an. Da stimmt was nicht.
-
@thomas-braun said in Raspberry Pi NodeJS update aber NPM hat die flasche Version:
Schau dir das mysql Repository an. Da stimmt was nicht.
wo finde ich das?
-
Keine Ahnung. Ich hab das nicht angelegt.
cat /etc/apt/sources.list.d/mysql.list
zeigt was? mysql wird nicht für deinen Prozessor über dieses Repo bereitgestellt. Kann also gelöscht werden.
-
@thomas-braun Hi, hab ich gemacht, danke!