Open tasop-rsconnect opened 3 years ago
@tasop-rsconnect I had the same issues you describe, so i made a fork with patches for msys2/mingw here, maybe this can help.
@jorgebucaran If this is a good solution i'm happy to make a PR.
I'd love a PR! @M4RC3L05
@jorgebucaran I've created a new pull request to fix this, it uses either unzip or bsdtar (included in MSYS2). https://github.com/jorgebucaran/nvm.fish/pull/192
Installing a version of node (specifically 10.23.2) has the following problems:
This is because
nvm.fish
line 42 usesstring lower
, but line 52 compares to uppercase strings.curl
(line 81) fails withcurl: (23) Failure writing output to destination
I worked around that by having
curl
save to a temp file, and thentar
read from that file.tar
part of installing (line 82) fails for some reason I couldn't determine.It works if I separate it into two commands instead of using
&&
or; and
in lines 81-82._nvm_node_info
fails because apparentlynpm
is directly insideversion/bin
instead ofnode_modules/npm
, sopackage.json
isn't in the same directory.Using it on Windows 10 with MSYS2.
curl
version: 7.74.0 (x86_64-pc-msys)tar
version: bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.5.f-ippI decided against making a pull request since I only have workarounds for the above and I can't be sure it would work in general, but I can hope this information helps you figure out the problems.