Skip to content

Instantly share code, notes, and snippets.

@kribblo
Created March 19, 2018 10:09
Show Gist options
  • Save kribblo/d261e483e6805949278618a79d63a33d to your computer and use it in GitHub Desktop.
Save kribblo/d261e483e6805949278618a79d63a33d to your computer and use it in GitHub Desktop.
npm unpublish a range of versions
# Example: npm unpublish the-package from 0.5.31 to 0.5.41
for i in $(seq 31 41); do npm unpublish "the-package@0.5.$i"; done
# list available versions of the-package:
npm show the-package versions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment