diff --git a/nvm.sh b/nvm.sh index b7d9bb9..e81f012 100755 --- a/nvm.sh +++ b/nvm.sh @@ -62,7 +62,7 @@ nvm_has_system_iojs() { nvm_print_npm_version() { if nvm_has "npm"; then - npm --version 2>/dev/null | command xargs printf " (npm v%s)" + echo " (npm v$(npm --version 2>/dev/null))" fi }