NEWS
Fehler - npm WARN read-shrinkwrap
-
Systemdata Bitte Ausfüllen Hardwaresystem: NUC Architektur x64 CPUs 4 Geschwindigkeit 2300 MHz Modell Intel(R) Celeron(R) CPU J3455 @ 1.50GHz Arbeitsspeicher: 4GB Festplattenart: SSD Betriebssystem: Bullseye Node-Version: 14.19.1 Nodejs-Version: 14.19.1 NPM-Version: 6.14.16 Installationsart: Manuell Image genutzt: Nein Ort/Name der Imagedatei: none Hallo zusammen,
leider kann ich auf meinem iobroker kein Update ausführen.
Folgende Fehlermeldung bekomme ich:
npm warn read-shrinkwrap this version of npm is compatible with lockfileversion@1, but package-lock.json was generated for lockfileversion@2. i'll try to do my best with it!
Was kann ich tun!?
Danke.
BLRD
-
Da war/ist mit Sicherheit mal npm>6 installiert gewesen.
Ist das denn jetzt sauber?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
Wenn das konsistent ist:
iobroker stop rm /opt/iobroker/package-lock.json iobroker start
-
@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.