Speed up `nvm_print_npm_version`.

Jordan Harband 2015-06-28 16:23:12 -07:00
parent c31b072145
commit cc090f4476
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -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
}