mirror of
https://github.com/nvm-sh/nvm.git
synced 2026-12-06 22:52:23 +03:00
Some systems, like the Fedora and UBI container images, ship no `which`, so `nvm current` printed `none` with a version in use, which also let `nvm uninstall` remove the active version, and `nvm which system` failed. Look node up with `command -v`, ignoring aliases and functions, via a new `nvm_executable_path`, which `nvm_has_executable` now uses too. Co-authored-by: Iain <iain1970@protonmail.com> Co-authored-by: Jordan Harband <ljharb@gmail.com>