mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
add yarn to nvm_print_npm_version
This commit is contained in:
parent
8a8dcbb393
commit
88e467fd81
3
nvm.sh
3
nvm.sh
@ -136,6 +136,9 @@ nvm_print_npm_version() {
|
|||||||
if nvm_has "npm"; then
|
if nvm_has "npm"; then
|
||||||
command printf " (npm v$(npm --version 2>/dev/null))"
|
command printf " (npm v$(npm --version 2>/dev/null))"
|
||||||
fi
|
fi
|
||||||
|
if nvm_has "yarn"; then
|
||||||
|
command printf " (yarn v$(yarn --version 2>/dev/null))"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
nvm_install_latest_npm() {
|
nvm_install_latest_npm() {
|
||||||
|
Loading…
Reference in New Issue
Block a user