diff --git a/modules/node/functions/node-info b/modules/node/functions/node-info index 14930a3b..e4cd52d0 100644 --- a/modules/node/functions/node-info +++ b/modules/node/functions/node-info @@ -16,7 +16,7 @@ typeset -gA node_info if (( $+functions[nvm_version] )); then version="${$(nvm_version)#v}" elif (( $+commands[nodenv] )); then - version="${$(nodenv version)#v}" + version="${${$(nodenv version)#v}[(w)0]}" fi if [[ "$version" != (none|) ]]; then