NEWS
Fehler - npm WARN read-shrinkwrap
-
@thomas-braun sagte in Fehler - npm WARN read-shrinkwrap:
sudo ln -s /usr/bin/node /usr/bin/nodejs
Hi,
erst einmal Danke.
bei
sudo ln -s /usr/bin/node /usr/bin/nodejs uname -m && which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
bekomme ich dies:
x86_64 /usr/bin/nodejs /usr/bin/node /usr/bin/npm v14.19.1 v14.19.1 6.14.16 dr /home/dr Hit:1 https://deb.nodesource.com/node_14.x impish InRelease Hit:2 http://archive.ubuntu.com/ubuntu impish InRelease Hit:3 http://archive.ubuntu.com/ubuntu impish-updates InRelease Hit:4 http://archive.ubuntu.com/ubuntu impish-security InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done 6 packages can be upgraded. Run 'apt list --upgradable' to see them. N: Unable to locate package nodejs~
Soll ich nun dies
iobroker stop rm /opt/iobroker/package-lock.json iobroker start
machen?
Danke BLRD
-
Da ist ein Klemmer drin:
N: Unable to locate package nodejs~
Da ist wohl mal versucht worden ein Paket nodejs~ zu installieren, welches es aber nicht gibt.
Was haste denn da mit nodejs angestellt? -
-
apt policy nodejs~ sudo apt update sudo apt full-upgrade sudo reboot
-
@thomas-braun sagte in Fehler - npm WARN read-shrinkwrap:
apt policy nodejs~
Also bei
apt policy nodejs~
bekomme ich dies
dr@IOB-124:~$ apt policy nodejs nodejs: Installed: 14.19.2-deb-1nodesource1 Candidate: 14.19.2-deb-1nodesource1 Version table: *** 14.19.2-deb-1nodesource1 500 500 https://deb.nodesource.com/node_14.x impish/main amd64 Packages 100 /var/lib/dpkg/status 12.22.9~dfsg-1ubuntu3 500 500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
Wie weiter machen?
-
@blrd sagte in Fehler - npm WARN read-shrinkwrap:
apt policy nodejs~
MIT der Tilde eingeben.
Und einen Mix aus jammy und impish solltest du auch nicht fahren. Was haste denn da nun am Start?
lsb_release -a
-
@thomas-braun sagte in Fehler - npm WARN read-shrinkwrap:
apt policy nodejs~
Bei
apt policy nodejs~
dr@IOB-124:~$ apt policy nodejs~ N: Unable to locate package nodejs~
und
dr@IOB-124:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04 LTS Release: 22.04 Codename: jammy
-
sudo apt update sudo apt full-upgrade
-
@blrd
Und trag in die Datei
/etc/apt/sources.list.d/nodesource.list
statt impish jammy ein. Das Repository sollte jetzt für das jammy-Release verfügbar sein. -
Warum stehen eigentlich deine ganzen .list-Dateien noch auf impish, wenn du jammy installiert hast? Distributions-Upgrade 'irgendwie' gemacht? Das ist jedenfalls Mega-Murks.
sudo sed -i 's/impish/jammy/g' /etc/apt/sources.list sudo sed -i 's/impish/jammy/g' /etc/apt/sources.list.d/*
-
-
-
@thomas-braun sagte in Fehler - npm WARN read-shrinkwrap:
sudo apt update
dr@IOB-124:~$ sudo apt update [sudo] password for dr: Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease Get:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [109 kB] Get:3 http://archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB] Hit:4 https://deb.nodesource.com/node_14.x jammy InRelease Get:5 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [50.8 kB] Get:6 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [63.5 kB] Fetched 334 kB in 1s (301 kB/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. dr@IOB-124:~$
dr@IOB-124:~$ sudo apt full-upgrade Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required: libpython2-dev libpython2-stdlib libpython2.7 libpython2.7-dev libpython2.7-minimal libpython2.7-stdlib python2 python2-dev python2-minimal python2.7 python2.7-dev python2.7-minimal Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. dr@IOB-124:~$
-
@blrd sagte in Fehler - npm WARN read-shrinkwrap:
sudo apt autoremove iobroker stop rm /opt/iobroker/package-lock.json iobroker update iobroker upgrade iobroker start
-
@thomas-braun sagte in Fehler - npm WARN read-shrinkwrap:
rm /opt/iobroker/package-lock.json
Bei
bekomme ich
rm: cannot remove '/opt/iobroker/package-lock.json': No such file or directory dr@IOB-124:/opt/iobroker$ ls INSTALLER_INFO.txt iob iobroker-data node_modules reinstall.js backups iobroker log package.json dr@IOB-124:/opt/iobroker$
Sorry muss jetzt weg, können wir bitte morgen dazu nochmal kommunizieren?! Danke
-
-
iobroker stop sudo -H -u iobroker rm /opt/iobroker/package-lock.json sudo -H -u iobroker rm /opt/iobroker/node_modules/.package-lock.json iobroker update
-
@thomas-braun sagte in Fehler - npm WARN read-shrinkwrap:
iobroker update
Zeile 2 keine Datei gefunden
Zeile durchgelaufen.Neustart, kein update möglich.
Danke.
-
Bitte komplette Ein- und Ausgaben aus dem Terminal posten, keine Nacherzählungen.
-
Bitte schön:
dr@IOB-124:/opt/iobroker$ iobroker stop dr@IOB-124:/opt/iobroker$ sudo -H -u iobroker rm /opt/iobroker/package-lock.json rm: cannot remove '/opt/iobroker/package-lock.json': No such file or directory dr@IOB-124:/opt/iobroker$ sudo -H -u iobroker rm /opt/iobroker/node_modules/.package-lock.json rm: cannot remove '/opt/iobroker/node_modules/.package-lock.json': No such file or directory dr@IOB-124:/opt/iobroker$ iobroker update Used repository: beta Adapter "admin" : 5.4.3 , installed 5.3.8 [Updatable] Adapter "alexa2" : 3.12.0 , installed 3.12.0 Adapter "backitup" : 2.4.6 , installed 2.4.6 Adapter "chromecast" : 2.3.1 , installed 2.3.1 Adapter "cloud" : 4.1.1 , installed 4.1.1 Adapter "daswetter" : 3.1.3 , installed 3.1.2 [Updatable] Adapter "discovergy" : 0.5.8 , installed 0.5.8 Adapter "discovery" : 3.0.3 , installed 3.0.3 Adapter "dwd" : 2.8.3 , installed 2.8.3 Adapter "echarts" : 1.0.3 , installed 1.0.3 Adapter "email" : 1.0.10 , installed 1.0.10 Adapter "fb-checkpresence": 1.1.14, installed 1.1.14 Adapter "fritzbox" : 0.5.0 , installed 0.5.0 Adapter "fritzdect" : 2.2.3 , installed 2.2.3 Adapter "history" : 1.11.1 , installed 1.11.1 Adapter "homee" : 1.2.0 , installed 1.2.0 Adapter "icons-addictive-flavour-png": 0.1.0, installed 0.1.0 Adapter "icons-fatcow-hosting": 0.1.0, installed 0.1.0 Adapter "icons-icons8" : 0.0.1 , installed 0.0.1 Adapter "icons-material-png": 0.1.0, installed 0.1.0 Adapter "icons-material-svg": 0.1.0, installed 0.1.0 Adapter "icons-mfd-svg": 1.1.0 , installed 1.1.0 Adapter "icons-open-icon-library-png": 0.1.2, installed 0.1.3 Adapter "icons-ultimate-png": 1.0.1, installed 1.0.1 Adapter "info" : 1.9.19 , installed 1.9.19 Adapter "iot" : 1.11.4 , installed 1.11.4 Adapter "iqontrol" : 2.0.1 , installed 2.0.1 Adapter "jarvis" : 3.0.11 , installed 3.0.11 Adapter "javascript" : 5.6.0 , installed 5.6.0 Controller "js-controller": 4.0.23 , installed 4.0.23 Adapter "lovelace" : 2.1.4 , installed 2.1.4 Adapter "mihome-vacuum": 3.3.3 , installed 3.3.3 Adapter "moma" : 1.2.9 , installed 1.2.9 Adapter "net-tools" : 0.1.7 , installed 0.1.7 Adapter "netatmo" : 1.7.1 , installed 1.7.1 Adapter "nina" : 0.0.25 , installed 0.0.25 Adapter "node-red" : 3.3.0 , installed 3.3.0 Adapter "onvif" : 0.4.4 , installed 0.4.4 Adapter "ping" : 1.5.3 , installed 1.5.3 Adapter "pollenflug" : 1.0.6 , installed 1.0.6 Adapter "proxmox" : 1.3.4 , installed 1.3.4 Adapter "shelly" : 5.3.2 , installed 5.3.2 Adapter "simple-api" : 2.6.5 , installed 2.6.5 Adapter "socketio" : 4.2.0 , installed 4.2.0 Adapter "sonoff" : 2.5.1 , installed 2.5.1 Adapter "synology" : 2.1.7 , installed 2.1.6 [Updatable] Adapter "tankerkoenig" : 2.1.1 , installed 2.1.1 Adapter "telegram" : 1.12.6 , installed 1.12.6 Adapter "tr-064" : 4.2.16 , installed 4.2.16 Adapter "upnp" : 1.0.21 , installed 1.0.21 Adapter "vis" : 1.4.15 , installed 1.4.15 Adapter "vis-bars" : 0.1.4 , installed 0.1.4 Adapter "vis-fancyswitch": 1.1.0 , installed 1.1.0 Adapter "vis-google-fonts": 1.0.3 , installed 1.0.3 Adapter "vis-hqwidgets": 1.2.0 , installed 1.2.0 Adapter "vis-jqui-mfd" : 1.0.12 , installed 1.0.12 Adapter "vis-keyboard" : 0.0.2 , installed 0.0.2 Adapter "vis-material-webfont": 0.0.3, installed 0.0.3 Adapter "vis-metro" : 1.2.0 , installed 1.2.0 Adapter "vis-rgraph" : 0.0.2 , installed 0.0.2 Adapter "weatherunderground": 3.4.2, installed 3.4.1 [Updatable] Adapter "web" : 4.3.0 , installed 4.3.0 Adapter "ws" : 1.3.0 , installed 1.3.0 Adapter "zigbee" : 1.6.18 , installed 1.6.18 dr@IOB-124:/opt/iobroker$