How to Delete node_modules - Deep Nested Folder in Windows

前端 未结 30 1064
逝去的感伤
逝去的感伤 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条回答
  •  猫巷女王i
    2020-12-02 04:04

    Not exactly related, but as this is the first post I found in my search for a similar solution I think it's worth posting here.

    I was running into permission issues on Windows 10 trying to delete my node_modules folder after a failed attempt at installing electron-redux. It seems electron-redux added @types to my node_modules, which had incorrect permissions set up.

    rimraf did not work as it still ran into permission issues.

    I ended up renaming node_modules then a simple delete worked.

提交回复
热议问题