Browse Source

Make node-info work without nvm/nodenv

master
Michael Kohl 6 years ago committed by Indrajit Raychaudhuri
parent
commit
1b0d6f0aed
  1. 2
      modules/node/functions/node-info

2
modules/node/functions/node-info

@ -19,6 +19,8 @@ if (( $+functions[nvm_version] )); then @@ -19,6 +19,8 @@ if (( $+functions[nvm_version] )); then
version="${$(nvm_version)#v}"
elif (( $+commands[nodenv] )); then
version="${${$(nodenv version)#v}[(w)0]}"
elif (( $+commands[node] )) ; then
version="${$(node -v)#v}"
fi
if [[ "$version" != (none|) ]]; then

Loading…
Cancel
Save