Skip to content

Instantly share code, notes, and snippets.

@hatappo
Last active July 30, 2025 22:41
Show Gist options
  • Select an option

  • Save hatappo/fed0bc693693764e816e5ae97e3c000c to your computer and use it in GitHub Desktop.

Select an option

Save hatappo/fed0bc693693764e816e5ae97e3c000c to your computer and use it in GitHub Desktop.
volta install でグローバルにインストールされているパッケージのバージョンをまとめてアップデートする
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