We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fbe3a6 commit f449070Copy full SHA for f449070
nvm.sh
@@ -1591,6 +1591,11 @@ nvm_ls_remote() {
1591
fi
1592
PATTERN="$(NVM_LTS="${NVM_LTS-}" nvm_ls_remote "${IMPLICIT}" | command tail -1 | command awk '{ print $1 }')"
1593
elif [ -n "${PATTERN}" ]; then
1594
+ # Check if PATTERN is a known LTS name without lts/ prefix
1595
+ if [ -f "$(nvm_alias_path)/lts/$(echo "${PATTERN}" | tr '[:upper:]' '[:lower:]')" ]; then
1596
+ nvm_err "LTS names must be prefixed with 'lts/'. Use 'lts/${PATTERN}' instead."
1597
+ return 3
1598
+ fi
1599
PATTERN="$(nvm_ensure_version_prefix "${PATTERN}")"
1600
else
1601
PATTERN=".*"
0 commit comments