Trouble upgrading nodejs to version 0.6.3-1 in ArchLinux

5

1

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?

Nicolas Buduroi

Posted 2011-11-29T22:06:51.350

Reputation: 357

Answers

11

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.

user1686

Posted 2011-11-29T22:06:51.350

Reputation: 283 655

I understand that --force can be used, but is there a safer way to do this easily? – Nick McCurdy – 2013-10-23T03:52:04.367

1@NicolasMcCurdy: Only by manually removing the conflicting files. – user1686 – 2014-06-12T08:52:49.233