V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
SayHelloHi

快速清理硬盘中 node_modules 文件夹

  •  
  •   SayHelloHi · Feb 4, 2024 · 1155 views
    This topic created in 821 days ago, the information mentioned may be changed or developed.

    https://github.com/voidcosmos/npkill


    放假前 清理了一下电脑

    所有的 node_modules 占用了 5G 空间

    ntdll
        1
    ntdll  
       Feb 4, 2024
    我自己一般都是用 vscode 的 dev container ,因此容器重建就没了。不过 Linux 里面,我想应该简单也可以删除。

    find -type d -name node_modules . | xargs rm -rf
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2666 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 11:56 · PVG 19:56 · LAX 04:56 · JFK 07:56
    ♥ Do have faith in what you're doing.