How to Delete node_modules - Deep Nested Folder in Windows

前端 未结 30 1000
逝去的感伤
逝去的感伤 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:13

    Since this the top google result, this is what worked for me:

    Install RimRaf:

    npm install rimraf -g

    And in the project folder delete the node_modules folder with:

    rimraf node_modules

    If you want to recursively delete:

    rimraf .\**\node_modules

    [ http://www.nikola-breznjak.com/blog/nodejs/how-to-delete-node_modules-folder-on-windows-machine/ ]

提交回复
热议问题