Installing a version of node (specifically 10.23.2) has the following problems:
- OS detection doesn't work.
This is because nvm.fish line 42 uses string lower, but line 52 compares to uppercase strings.
- Solving the above,
curl (line 81) fails with curl: (23) Failure writing output to destination
I worked around that by having curl save to a temp file, and then tar read from that file.
- Working around the above, the
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.
- Working around the above,
_nvm_node_info fails because apparently npm is directly inside version/bin instead of node_modules/npm, so package.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-ipp
I 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.
Installing a version of node (specifically 10.23.2) has the following problems:
This is because
nvm.fishline 42 usesstring lower, but line 52 compares to uppercase strings.curl(line 81) fails withcurl: (23) Failure writing output to destinationI worked around that by having
curlsave to a temp file, and thentarread from that file.tarpart of installing (line 82) fails for some reason I couldn't determine.It works if I separate it into two commands instead of using
&∨ andin lines 81-82._nvm_node_infofails because apparentlynpmis directly insideversion/bininstead ofnode_modules/npm, sopackage.jsonisn't in the same directory.Using it on Windows 10 with MSYS2.
curlversion: 7.74.0 (x86_64-pc-msys)tarversion: 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.