System update npm update failed
Hello, I have been having issues with system updates - first with asdf which I turned off updates for in topgrade and now npm. Not sure if turning off updates for that in topgrade is also a solution but i am also wondering why I am getting these errors.
Here is the error i get
── 11:55:05 - Node Package Manager ─────────────────────────────────────────────
npm error code EEXIST
npm error syscall symlink
npm error path ../../../lib/node_modules/npm/man/man7/package-spec.7
npm error dest /var/home/linuxbrew/.linuxbrew/share/man/man7/package-spec.7
npm error errno -17
npm error EEXIST: file already exists, symlink '../../../lib/node_modules/npm/man/man7/package-spec.7' -> '/var/home/linuxbrew/.linuxbrew/share/man/man7/package-spec.7'
npm error File exists: /var/home/linuxbrew/.linuxbrew/share/man/man7/package-spec.7
npm error Remove the existing file and try again, or run npm
npm error with --force to overwrite files recklessly.
npm error A complete log of this run can be found in: /home/bazzite/.npm/_logs/2025-06-20T18_55_06_218Z-debug-0.log
npm failed:
0: Command failed:
1:
Here is the error i get
── 11:55:05 - Node Package Manager ─────────────────────────────────────────────
npm error code EEXIST
npm error syscall symlink
npm error path ../../../lib/node_modules/npm/man/man7/package-spec.7
npm error dest /var/home/linuxbrew/.linuxbrew/share/man/man7/package-spec.7
npm error errno -17
npm error EEXIST: file already exists, symlink '../../../lib/node_modules/npm/man/man7/package-spec.7' -> '/var/home/linuxbrew/.linuxbrew/share/man/man7/package-spec.7'
npm error File exists: /var/home/linuxbrew/.linuxbrew/share/man/man7/package-spec.7
npm error Remove the existing file and try again, or run npm
npm error with --force to overwrite files recklessly.
npm error A complete log of this run can be found in: /home/bazzite/.npm/_logs/2025-06-20T18_55_06_218Z-debug-0.log
npm failed:
0: Command failed:
/home/linuxbrew/.linuxbrew/bin/npm update '--location=global'1:
/home/linuxbrew/.linuxbrew/bin/npm failed: exit status: 239