하위 node_modules폴더 전부 삭제하기

이태혁·2021년 1월 9일
0
  • 현재 폴더(하위폴더 포함)에서 node_moudles이 어디있는지 보여주는 명령어(삭제 하지 않음)
find . -name 'node_modules' -type d -prune
  • 위의 결과로 나온 node_modules폴더를 전부 삭제함
find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +

https://stackoverflow.com/questions/42950501/delete-node-modules-folder-recursively-from-a-specified-path-using-command-line

profile
back-end, cloud, docker, web의 관심이 있는 예비개발자입니다.

0개의 댓글