add yarn to nvm_print_npm_version

This commit is contained in:
Stefan Wimmer 2017-12-09 09:33:53 +01:00 committed by GitHub
parent 8a8dcbb393
commit 88e467fd81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
nvm.sh
View File

@ -136,6 +136,9 @@ nvm_print_npm_version() {
if nvm_has "npm"; then
command printf " (npm v$(npm --version 2>/dev/null))"
fi
if nvm_has "yarn"; then
command printf " (yarn v$(yarn --version 2>/dev/null))"
fi
}
nvm_install_latest_npm() {