Hi all, it appears we have a new Update this morning, I’m having some issues regarding conflicting packages (mainly in my nodejs folders…). I’m not sure what to do to remedy this issue, this is the first time sudo pacman -Syu hasn’t worked…
Any help regarding this issue would be appreciated, it is occurring on both my laptop and my desktop.
You can run
sudo pacman -Qo /path/to/file
with any of the files which exist in the filesystem to figure out which package owns it. If no package owns the file, you can safely delete it.
Thank you, yes unfortunately it looks like there were conflicting packages in the npm.
Either way I simply utilized pacman -Rcns npm and pacman-Rcns nodejs and reinstalled and it was all good.
I do wonder how that happened though…
Thank you for the reply and the help!
Be careful when using -c option in combination with pacman -R, it could potentially remove still required packages.
Node packaging is a well known issue, just google ‘node dependency hell’ for an idea. The builtin package manager is known to be flaky, like you I tried it out for a while, but ended up exactly where you are and decided that until they package node properly I will forego the pleasure.
Thank you, can I ust use -Rns and have the same sort of results? Sorry, I know the Arch community likes to constantly berate noobs like myself with the rtfm meme, but I like having things explained via forum chats.
But yes, this will become more of an issue if I ever work on anything that requires the dependencies to be working 100% of the time…
Wait, so the AUR is better for ALL node packages than the NPM? That’s can’t be true…
I’m pretty sure npm is necessary for most things development related…and funny enough I sometimes find that Linux is necessary for software development as well as developing on Windows is annoying and the Apple ecosystem has a different kind of toxicity I can’t exactly describe well…
for dev, we can use local install (npm without option -g)
To simply not care and overwrite all the file conflicts you can use:
sudo pacman -Syu --overwrite "*"
The more comprehensive version of @strit’s comment
Installing node packages using sudo npm install is as prone to conflicts as doing the same thing with python packages and sudo pip.
This should be avoided.
You can use nvm to manage your node - all stored in your home (this is opinionated - but I have never had issues with it)
yes i only really install one global package, and that’s nodemon, but I suppose it’s not that much of a hassle to install it on every project.
Lol, I’ll put this in my notes, but this seems a bit dangerous to use…
I see you work on the ARM team, my Raspberry Pi 400 and I thank you!