[Fix] nvm reinstall-packages: don't print VERSION='' in zsh

`nvm` already declares `VERSION` local, and declaring an existing local again makes zsh print it.
This commit is contained in:
Jordan Harband committed 2026-10-21 12:47:13 -07:00
1 parent fe017ae9bd
commit 6a085bc8b4
2 files changed
+38 -1

No files matched your search

-1
View File
@@ -5599,7 +5599,6 @@ nvm() {
return 2
fi
local VERSION
if [ "_${PROVIDED_VERSION}" = "_system" ]; then
if ! nvm_has_system_node && ! nvm_has_system_iojs; then
nvm_err 'No system version of node or io.js detected.'