Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save isaobushi/0f47bd001f9ba38b61d690f970a57bef to your computer and use it in GitHub Desktop.
Save isaobushi/0f47bd001f9ba38b61d690f970a57bef to your computer and use it in GitHub Desktop.

Revisions

  1. isaobushi renamed this gist Jul 13, 2020. 1 changed file with 1 addition and 1 deletion.
    Original file line number Diff line number Diff line change
    @@ -13,4 +13,4 @@ find . -name "node_modules" -type d -prune | xargs du -chs

    DELETE all node_modules

    find . -name "node_modules" -type d -prune | xargs du -chs
    find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
  2. isaobushi created this gist Jul 13, 2020.
    16 changes: 16 additions & 0 deletions snippets, iterm, node_modules
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    **Check how much memory

    find . -name "node_modules" -type d -prune | xargs du -chs

    - example output:

    252M ./jotto-hooks/node_modules
    410M ./tempBin/refugee-job-search-frontend-user/node_modules
    415M ./Magic-League/node_modules
    72M ./legal-block-backend/node_modules
    17G total


    DELETE all node_modules

    find . -name "node_modules" -type d -prune | xargs du -chs