"ujust upgrade" error msg

Im getting the following output when trying to perform a ujust upgrade or a ujust update cmd.

── 19:30:41 - 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/hlong/.npm/_logs/2025-06-25T18_30_41_919Z-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

Location:
   src/steps/node.rs:102
image.png
Solution
try switching to nvm instead, using the official guide on node's website
https://nodejs.org/en/download
Node.js® is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.
Was this page helpful?