pacman -Syu-Fehler mit npm (konfliktierende Dateien)

pacman -Syu-Fehler mit npm (konfliktierende Dateien)

Ich habe gerade versucht, den Befehl pacman -Syu auszuführen und bin auf diesen Fehler gestoßen:

(417/417) sprawdzanie kluczy w bazie                                                                                   [########################################################################] 100%
(417/417) sprawdzanie spójności pakietów                                                                               [########################################################################] 100%
(417/417) wczytywanie listy plików                                                                                     [########################################################################] 100%
(417/417) sprawdzanie konfliktów plików                                                                                [########################################################################] 100%
błąd:  nie udało się dokonać transakcji (konfliktujące pliki)
npm: /usr/lib/node_modules/npm/node_modules/cmd-shim/lib/to-batch-syntax.js znajduje się w systemie plików
npm: /usr/lib/node_modules/npm/node_modules/gentle-fs/lib/chown.js znajduje się w systemie plików
npm: /usr/lib/node_modules/npm/node_modules/gentle-fs/lib/mkdir.js znajduje się w systemie plików
npm: /usr/lib/node_modules/npm/node_modules/read-cmd-shim/LICENSE znajduje się w systemie plików
Wystąpiły błędy, nie zaktualizowano żadnego pakietu.

Was man wie folgt übersetzen kann:

(417/417) checking the keys in the database [######################################## ################################] 100%
(417/417) checking package integrity [######################################### ###############################] 100%
(417/417) loading file list [######################################### ###############################] 100%
(417/417) checking file conflicts [######################################### ###############################] 100%
error: transaction failed (conflicting files)
npm: /usr/lib/node_modules/npm/node_modules/cmd-shim/lib/to-batch-syntax.js is in the file system
npm: /usr/lib/node_modules/npm/node_modules/gentle-fs/lib/chown.js is in the file system
npm: /usr/lib/node_modules/npm/node_modules/gentle-fs/lib/mkdir.js is in the file system
npm: / usr / lib / node_modules / npm / node_modules / read-cmd-shim / LICENSE is in the file system
There were errors, no package has been updated.

Antwort1

Melden Sie sich als Root an, löschen Sie die aufgelisteten Dateien und führen Sie den Vorgang erneut aus.

Das ist passiert, weil Sie npm wahrscheinlich direkt ausgeführt haben, um sich selbst zu aktualisieren (wahrscheinlich)... Was Sie vermeiden sollten ...(Hier ist ein Beispiel dafür - aber es ist eine persönliche Meinung).

Sie können in Betracht ziehenNVMwie erwähnt in derAlternative Installationsmethode des Arch Wiki...

verwandte Informationen