Adding some helpful output to `nvm copy-packages`

master
Jordan Harband 2014-09-21 11:02:03 -07:00
parent 6bae6c07f2
commit a42b90d215
1 changed files with 1 additions and 0 deletions

1
nvm.sh
View File

@ -850,6 +850,7 @@ nvm() {
INSTALLS=$(nvm use "$VERSION" > /dev/null && npm list -g --depth=0 | tail -n +2 | \grep -o -e ' [^@]*' | cut -c 2- | \grep -v npm | xargs)
fi
echo "Copying global packages from $VERSION..."
echo "$INSTALLS" | xargs npm install -g --quiet
;;
"clear-cache" )