Skip to content
Myr

Adding some helpful output to `nvm copy-packages`

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jordan Harband · committed by Jordan Harband · parent 6bae6c0 · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:nvm.sh+1 added
848 unmodified lines
849 VERSION="$(nvm_version "$PROVIDED_VERSION")"850 INSTALLS=$(nvm use "$VERSION" > /dev/null && npm list -g --depth=0 | tail -n +2 | \grep -o -e ' [^@]*' | cut -c 2- | \grep -v npm | xargs)851 fi852853 echo "Copying global packages from $VERSION..."854 echo "$INSTALLS" | xargs npm install -g --quiet855 ;;856 "clear-cache" )857 rm -f $NVM_DIR/v* "$(nvm_version_dir)" 2>/dev/null
24 unmodified lines