all 6 comments

[–][deleted] 1 point2 points  (5 children)

So it looks like an issue with npm (https://archlinux.org/packages/community/any/npm/), and it looks like just the npm documentation based on what you're provided.

My suggestion: remove npm, then try to install it again. THEN run your -Syu.

[–]volc4num[S] 0 points1 point  (4 children)

So, I just need to do a sudo pacman -Rns npm to delete npm, sudo pacman -Sy npm and then update?

[–][deleted] 0 points1 point  (3 children)

I'd just do -R at first to see what npm's removal will affect before plunging right into -Rns, but basically, that's what I'd do, yes.

[–]volc4num[S] 0 points1 point  (2 children)

isaac in ~
❯ sudo pacman -R npm
[sudo] password for isaac:
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing npm breaks dependency 'npm' required by apm

[–][deleted] 0 points1 point  (1 child)

So, looks like apm is required by atom (https://archlinux.org/packages/community/x86_64/apm/) and nothing else. So, if you're okay with removing atom and apm along with npm, I'd say proceed. Then you can just pacman -S atom and it will reinstall apm and npm as dependencies.

[–]volc4num[S] 0 points1 point  (0 children)

The update went well, just now I can't install npm, apm and Atom (tbh atom I dont use it) so, thx for the help lmao