Update failed System not updates due to conflict

System not updates due to conflict
OS - Manjaro Linux (btrfs)

Output:
:: Proceed with installation? [Y/n]
(713/713) checking keys in keyring [#######################################################################################] 100%
(713/713) checking package integrity [#######################################################################################] 100%
(713/713) loading package files [#######################################################################################] 100%
(713/713) checking for file conflicts [#######################################################################################] 100%
error: failed to commit transaction (conflicting files)
npm: /usr/lib/node_modules/npm/docs/README.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/commands/npm-login.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/output/commands/npm-login.html exists in filesystem
npm: /usr/lib/node_modules/npm/lib/commands/login.js exists in filesystem
npm: /usr/lib/node_modules/npm/lib/utils/auth.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/isolated-reifier.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/@npmcli/config/README.md exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/@npmcli/config/lib/errors.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/@npmcli/fs/lib/cp/errors.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/@npmcli/fs/lib/move-file.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/@npmcli/fs/lib/readdir-scoped.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/@npmcli/installed-package-contents/lib/index.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/escape.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/abbrev/lib/index.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/abort-controller/LICENSE exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/abort-controller/browser.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/abort-controller/browser.mjs exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/abort-controller/dist/abort-controller.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/abort-controller/dist/abort-controller.mjs exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/abort-controller/dist/abort-controller.umd.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/abort-controller/package.json exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/abort-controller/polyfill.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/abort-controller/polyfill.mjs exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/base64-js/LICENSE exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/base64-js/base64js.min.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/base64-js/index.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/base64-js/package.json exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/buffer/AUTHORS.md exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/buffer/LICENSE exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/buffer/index.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/buffer/package.json exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/cacache/lib/util/glob.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/ci-info/LICENSE exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/ci-info/index.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/ci-info/package.json exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/ci-info/vendors.json exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/cli-columns/license exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/event-target-shim/LICENSE exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/event-target-shim/dist/event-target-shim.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/event-target-shim/dist/event-target-shim.mjs exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/event-target-shim/dist/event-target-shim.umd.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/event-target-shim/package.json exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/.airtap.yml exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/History.md exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/LICENSE exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/events.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/package.json exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/security.md exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/tests/add-listeners.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/tests/check-listener-leaks.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/tests/common.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/tests/errors.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/tests/events-list.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/tests/events-once.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/tests/index.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/tests/legacy-compat.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/tests/listener-count.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/tests/listeners-side-effects.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/tests/listeners.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/tests/max-listeners.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/tests/method-names.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/tests/modify-in-emit.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/tests/num-args.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/tests/once.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/tests/prepend.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/tests/remove-all-listeners.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/tests/remove-listeners.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/tests/set-max-listeners-side-effects.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/tests/special-event-names.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/tests/subclass.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/events/tests/symbols.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/fastest-levenshtein/bench.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/fastest-levenshtein/esm/mod.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/fastest-levenshtein/mod.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/hosted-git-info/lib/from-url.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/hosted-git-info/lib/hosts.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/hosted-git-info/lib/parse-url.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/ieee754/LICENSE exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/ieee754/index.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/ieee754/package.json exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/json-parse-even-better-errors/lib/index.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/minipass-collect/node_modules/minipass/LICENSE exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/minipass-collect/node_modules/minipass/index.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/minipass-collect/node_modules/minipass/package.json exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/minipass-flush/node_modules/minipass/LICENSE exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/minipass-flush/node_modules/minipass/index.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/minipass-flush/node_modules/minipass/package.json exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/minipass-json-stream/node_modules/minipass/LICENSE exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/minipass-json-stream/node_modules/minipass/index.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/minipass-json-stream/node_modules/minipass/package.json exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/minipass-pipeline/node_modules/minipass/LICENSE exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/minipass-pipeline/node_modules/minipass/index.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/minipass-pipeline/node_modules/minipass/package.json exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/minipass-sized/node_modules/minipass/LICENSE exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/minipass-sized/node_modules/minipass/index.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/minipass-sized/node_modules/minipass/package.json exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/minizlib/node_modules/minipass/LICENSE exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/minizlib/node_modules/minipass/index.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/minizlib/node_modules/minipass/package.json exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/npm-normalize-package-bin/lib/index.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/process/LICENSE exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/process/browser.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/process/index.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/process/package.json exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/process/test.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/read-package-json-fast/lib/index.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/which/bin/which.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/which/lib/index.js exists in filesystem
Errors occurred, no packages were upgraded.

Someone used sudo npm and should not have …

The suggestion above would work probably … though we can make it a tiny bit safer:

sudo pacman -Syu --overwrite '/usr/lib/node_modules/npm/*'

Thanks
Resolved by chatgpt)

sudo pacman -S nodejs