Errors with ujust update and npm

I installed npm via brew and when I run ujust update I get the following errors:

── 11:26:07 - Node Package Manager ─────────────────────────────────────────────
(node:78457) ExperimentalWarning: CommonJS module /var/home/linuxbrew/.linuxbrew/lib/node_modules/npm/node_modules/debug/src/node.js is loading ES Module /var/home/linuxbrew/.linuxbrew/lib/node_modules/npm/node_modules/supports-color/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
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: /var/home/guru/.npm/_logs/2024-11-09T16_26_07_802Z-debug-0.log

Any ideas?

I have this problem too.
What I did was:
rm /var/home/linuxbrew/.linuxbrew/share/man/man7/package-spec.7
and then a:
npm install --force

But this problem keeps coming back. I don’t have a definitive solution yet.

I did that and then it pointed to another file. Over and over again.

I’d a quick look at what I did back then. It was:

npm update ‘–location=global’ --force

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.