From cc090f4476c21008f56bfc6c464293d29895daf3 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sun, 28 Jun 2015 16:23:12 -0700 Subject: [PATCH] Speed up `nvm_print_npm_version`. --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }