I'm trying to upgrading nodejs to version 0.6.3-1 in ArchLinux, but get a conflict during the "checking for file conflicts" step. It complains about a bunch of files in the npm directory:

nodejs: /usr/bin/npm exists in filesystem
nodejs: /usr/lib/node_modules/npm/.gitmodules exists in filesystem
nodejs: /usr/lib/node_modules/npm/AUTHORS exists in filesystem
nodejs: /usr/lib/node_modules/npm/CHANGES exists in filesystem
nodejs: /usr/lib/node_modules/npm/LICENSE exists in filesystem
...

I found out there have been some changes in that package regarding the inclusion of NPM but I don't see how to get the upgrade to work without wiping all my NPM packages. Is there a way around this?

link|improve this question

80% accept rate
feedback

1 Answer

up vote 1 down vote accepted

Tell pacman to just overwrite the conflicting files using --force.

pacman -Sf nodejs

See Upgrade options in pacman(8).

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.