Probably dumb question, but I can’t figure this out on my own…
I want to install current nodejs lts + npm. Installing just nodejs-lts-hydrogen which has npm as optional dependency gives me only nodejs. On the other hand npm has as a dependency current nodejs, so if I’ll just separately install npm - it’ll also fetch current nodejs which I don’t need.
How can I tell pacman to install nodejs-lts-hydrogen together with npm as depandacy so that if say later I’ll decide to uninstall it with pacman -Rs - it’ll automatically remove npm as well?
And another question: npm is marked as outdated in the repo - is it at all safe to install such package?
I’m aware about nvm but I don’t like it and prefer not to use it since I need only one nodejs-npm pair anyway.