On Sep 23, 2024, at 16:16, Austin Ziegler wrote: > > I’ve been looking at some of this, and I think that one could *smooth over* > the issue by doing something like `depends bin:node:nodejs22` so that if you > already have nodejs installed, you can use it and it will use node22 > otherwise.
Don't use bin: depspecs unless you want software installed outside of MacPorts to be able to satisfy it. We seldom want that. You can however use path:bin/node:nodejs22 to achieve this and ports already do that. The problem is that if the user has, say, nodejs8 installed but you require a newer version then things will just fail. The nodejs ports need to be enhanced so that multiple versions can be installed at the same time, like we do for other languages already. Then each port can reliably depend on the nodejs version it needs.
