Files
nvm/test/fast/Unit tests
Rahul Beniwal 81f13638d7 [Fix] Reject bare LTS codenames in nvm install
Previously, `nvm install Argon` would succeed by matching the LTS name
in the version description (e.g., "v4.9.1 (Latest LTS: Argon)"), but
`nvm uninstall Argon` would fail because "Argon" is not a valid alias or not a valid version.

Changes:
- Added pattern matching check in nvm_remote_version (nvm.sh:785-791)
- Skips check for implicit aliases (node, stable, etc.) to preserve
  existing functionality
- Added unit tests to verify LTS names are rejected while version
  numbers still work
After this fix:
- `nvm install Argon` → fails (use `nvm install lts/argon` instead)
- `nvm install 4` → still works
- `nvm install node` → still works
- `nvm install lts/argon` → still works

This makes install and uninstall behavior consistent.

Fixes #3474.
2025-11-24 21:57:39 +05:30
..
2024-10-31 14:23:36 -07:00
2018-02-26 01:01:30 +08:00
2018-03-06 04:38:01 +00:00
2018-02-26 01:01:30 +08:00
2018-03-06 04:38:01 +00:00
2021-03-11 13:06:41 -08:00
2023-10-23 14:53:39 -07:00