[MacPorts] #61214: npm6: nodejs dep on older systems
MacPorts
noreply at macports.org
Wed Sep 23 05:17:46 UTC 2020
#61214: npm6: nodejs dep on older systems
--------------------+----------------------------
Reporter: iefdev | Owner: ci42
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.3
Keywords: | Port: npm6, nodejs14
--------------------+----------------------------
I have a question about the `depends_lib` in `npm6`.
{{{
#!tcl
platform darwin {
if {${os.major} < 13} {
depends_lib-replace path:bin/node:nodejs14 path:bin/node:nodejs8
}
}
}}}
I've had NodeJS installed via the pkg from their site – which has worked
fine for me on Lion. Current is node 14.12 + npm 6.14.
So, when moving over to the MP versions, I was a little surprised when
`npm6` wanted to give me `nodejs8` instead.
`nodejs14` installed fine for me:
{{{
#!bash
$ port -v installed nodejs14
The following ports are currently installed:
nodejs14 @14.12.0_0 (active) platform='darwin 11' archs='x86_64'
date='2020-09-23T06:31:18+0200'
}}}
And since the dep in `npm6` is: `path:bin/node: ...` – it installed fine
after that.
\\
What's the reason behind the `nodejs8` requirement? …or perhaps it was a
time when newer versions of nodejs didn't build earlier?
Also, `nodejs{8,14}` are conflicts to each other, so it's difficult to get
`nodejs14` if I installed `npm6` first.
--
Ticket URL: <https://trac.macports.org/ticket/61214>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list