Skip to content

Instantly share code, notes, and snippets.

@PauloLuan
Created February 16, 2024 13:51
Show Gist options
  • Save PauloLuan/c4c4c9fcd87ad25ca50e16b0abced657 to your computer and use it in GitHub Desktop.
Save PauloLuan/c4c4c9fcd87ad25ca50e16b0abced657 to your computer and use it in GitHub Desktop.
clean_all_nodemodules_from_computer.sh
#! /usr/bin/env sh
set -e
find "${1-"$(pwd)"}" -name 'node_modules' -type d -prune -exec rm -rf '{}' +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment