Last active
July 30, 2025 22:41
-
-
Save hatappo/fed0bc693693764e816e5ae97e3c000c to your computer and use it in GitHub Desktop.
volta install でグローバルにインストールされているパッケージのバージョンをまとめてアップデートする
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| volta list | cat | grep "^package " | awk '{print $2}' | while read package_with_version; do | |
| # Delete the @ version part (delete after the last @) | |
| package=$(echo "$package_with_version" | sed 's/@[^@]*$//') | |
| echo " \e[34mupdate package:\e[0m $package_with_version" | |
| volta install "$package@latest" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment