How to Delete node_modules - Deep Nested Folder in Windows

前端 未结 30 986
逝去的感伤
逝去的感伤 2020-12-02 03:25

Upon trying to remove the node_modules directory created by npm install:

The source file name(s) are larger than is su

30条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-02 04:22

    I think this was not mentioned before. but the best way to delete unwanted node_modules is to install an utility called npmkill.

    Installation:

    From your terminal:

    npm i -g npkill
    

    And to use it:

    From your terminal:

    npkill
    

    You will then be presented with a list of projects, and by hitting space bar you can delete their node_modules.

提交回复
热议问题