Libpamac and pamac-common package conflict

Looks like you have been using something like sudo npm ...
Which is not correct usage … please see this for how to handle npm properly in the future:
https://wiki.archlinux.org/title/Node.js

As to completing your transaction, you can remove or overwrite or backup the files, see this: