Open ByLCY opened 5 months ago
I experience a similar issue. My node mirror doesn't provide .tar.xz
downloads, even for the latest version. When using nvm, I can get around this by patching nvm_supports_xz() { return 1; }
function in my bashrc to force it to download the .tar.gz file. I obviously can't do that with fnm.
Ideally, this function would need to return multiple URLs in order of preference (configurable?). i.e. xz -> gz https://github.com/Schniz/fnm/blob/a5a497b7e2c4cc615fedf366f9eeab4e322443ed/src/downloader.rs#L38-L45
I want to download
node v0.10.36
, but there is nonode-v0.10.36-darwin-x64.tar.xz
file at https://nodejs.org/dist onlynode-v0.10.36-darwin-x64.tar.gz
.Would like to be able to specify fnm whether to download a
.tar.xz
file or a.tar.gz
file.RUST_LOG=debug fnm install 0.10.36