Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

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

pacman -S --force nodejs

See Upgrade options in pacman(8).


Note: Be very careful with the --force option. It breaks things more often than it fixes.

share|improve this answer
    
I understand that --force can be used, but is there a safer way to do this easily? –  Nicolas McCurdy Oct 23 '13 at 3:52
    
@NicolasMcCurdy: Only by manually removing the conflicting files. –  grawity Jun 12 at 8:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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