NPM Update Errors
Hi, I installed npm via brew to fix some dependancy issues related to neovim and I am encountering the following error when running
ujust update
:
What is the guidance here? Do I need to install npm into a distrobox?
── 17:42:44 - Node Package Manager ─────────────────────────────────────────────
npm error code EEXIST
npm error syscall symlink
npm error path ../../../lib/node_modules/npm/man/man5/package-lock-json.5
npm error dest /var/home/linuxbrew/.linuxbrew/share/man/man5/package-lock-json.5
npm error errno -17
npm error EEXIST: file already exists, symlink '../../../lib/node_modules/npm/man/man5/package-lock-json.5' -> '/var/home/linuxbrew/.linuxbrew/share/man/man5/package-lock-json.5'
npm error File exists: /var/home/linuxbrew/.linuxbrew/share/man/man5/package-lock-json.5
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/gianni/.npm/_logs/2024-07-05T22_42_45_346Z-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
── 17:42:44 - Node Package Manager ─────────────────────────────────────────────
npm error code EEXIST
npm error syscall symlink
npm error path ../../../lib/node_modules/npm/man/man5/package-lock-json.5
npm error dest /var/home/linuxbrew/.linuxbrew/share/man/man5/package-lock-json.5
npm error errno -17
npm error EEXIST: file already exists, symlink '../../../lib/node_modules/npm/man/man5/package-lock-json.5' -> '/var/home/linuxbrew/.linuxbrew/share/man/man5/package-lock-json.5'
npm error File exists: /var/home/linuxbrew/.linuxbrew/share/man/man5/package-lock-json.5
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/gianni/.npm/_logs/2024-07-05T22_42_45_346Z-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
1 Reply
you can try npm update --force