ekalinin/nodeenv

Fallback on x64 build for node<16 on macOS

maxmelamed opened this issue · 1 comments

NodeJS does not have darwin-arm64 builds for versions older than 16, so if you try to run nodeenv --node=14.18.1 on an M1 mac, you end up getting a 404 from this request.
In these cases, I'd like to propose falling back on the darwin-x64 build to run under emulation. Happy to open a quick PR for this as well. Thanks!

@ekalinin I see there's some discussion of this issue in #283 where you suggest simply using newer versions of node, but there are some cases where an older version is needed. What do you think?