window下递归删除 node_modules和.next

Posted on 2025-11-01 00:59  kacoro  阅读(1)  评论(0)    收藏  举报

window下递归删除 node_modules

Get-ChildItem $Path -Recurse -Force  | Where{$_.Name -Match "node_modules"} | Remove-Item -Recurse -Force

  

window下递归删除.next

Get-ChildItem $Path -Recurse -Force  | Where{$_.Name -Match ".next"} | Remove-Item -Recurse -Force