Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 8 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
1  
@NicolasMcCurdy: Only by manually removing the conflicting files. – grawity Jun 12 '14 at 8:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .