mirror of
https://github.com/nvm-sh/nvm.git
synced 2026-11-25 18:23:46 +03:00
A trailing space (or tab) left by an editor, or an indented line, in `$NVM_DIR/default-packages` tripped the "multiple space-separated values" check, so the whole file was rejected and no default packages were installed after `nvm install`, with an error naming the wrong problem. Trim blanks around each line before checking it, as is already done for a trailing `\r`; a line with two values is still rejected. Assisted-by: Claude Code <noreply@anthropic.com> Signed-off-by: thejesh23 <35212698+thejesh23@users.noreply.github.com>