Open takase1121 opened 4 years ago
It is not currently supported. Sorry! But it is interesting.
I set the appropriate mirror env variable to the unofficial one
would you mind sharing the unofficial mirror? 😄
(taken from #274 comment:)
Potentially refactor for #239, most of this will be used in cfg!
if statements instead of #[cfg]
and maybe we'll have a PLATFORM constant that we can unit test, with the following possible values:
enum OsPlatform {
Arm32,
Arm64,
X86,
X64,
}
Here are some docs regarding #[cfg]
and cfg!
, and here's an example:
#[cfg(unix)]
fn this_fn_will_only_be_compiled_on_unix() {
println!("Hello, Unix!");
}
#[cfg(not(unix))]
fn this_fn_will_not_be_compiled_on_unix() {
println!("Hello, Windows!");
}
# Can be written like:
fn this_fn_will_always_compile() {
if cfg!(unix) {
println!("Hello, Unix!");
} else {
println!("Hello, Windows!");
}
}
This will not fix this issue entirely, but it will be a start that will help us replace the arch result to a custom environment variable, if set.
I am running fnm on Alpine, meaning no glibc thus official node.js build can't be used. I set the appropriate mirror env variable to the unofficial one, but it still fails to install because my arch is x64 but the unofficial build has
-musl
appended onto that. Hopefully a flag to override that can be added