FS#71747 - [npm6] depends on nodejs-lts-fermium

Attached to Project: Community Packages
Opened by Colin Arnott (arnottcr) - Thursday, 05 August 2021, 23:02 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 04 April 2023, 07:33 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To kpcyrd (kpcyrd)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No


I currently have need to use npm6 with nodejs-lts-erbium, however npm6 depends on nodejs-lts-fermium not nodejs. This should work, as can be seen in the node:erbium docker container.

Additional info:
* npm6 6.14.14-1
* nodejs-lts-fermium 14.17.4-1
* https://github.com/archlinux/svntogit-community/blob/packages/npm6/trunk/PKGBUILD#L14

Steps to reproduce:
pacman -S npm6 nodejs-lst-erbium
This task depends upon

Closed by  Toolybird (Toolybird)
Tuesday, 04 April 2023, 07:33 GMT
Reason for closing:  None
Additional comments about closing:  Pkg no longer exists
Comment by kpcyrd (kpcyrd) - Friday, 06 August 2021, 10:31 GMT
It seems there's no easy to fix this unfortunately, npm6 doesn't build with the latest nodejs anymore so I need to select a specific nodejs-lts (fermium being the most recent one that still works)

Setting `depends=(nodejs)` with `makedepends=(nodejs-lts-fermium)` doesn't work (although nodejs-lts-fermium `provides=(nodejs)`):

:: nodejs-lts-fermium and nodejs are in conflict. Remove nodejs? [y/N]

Removing nodejs from depends= doesn't work either because the other dependencies still pull in the nodejs package before makedepends is processed.

Your best bet right now is probably `asp checkout npm6` and building a package with nodejs-lts-erbium yourself.
Comment by loqs (loqs) - Friday, 06 August 2021, 19:59 GMT
What if you move the depends to the package function along with adding nodejs-lts-fermium to makedepends? See attached diff.