3 ms·
speaking of this, how do you do delete those crazy node_modules in Win10 from the command line? Powershell or CMD
by antjanus 10y ago
speaking of this, how do you do delete those crazy node_modules in Win10 from the command line? Powershell or CMD
- avtar 10y agormdir should do the trick: https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/rmdir.mspx?mfr=true https://www.microsoft.com/resources/documentation/windows/xp... Although installing MSYS2 http://msys2.github.io/ http://msys2.github.io/ provides a far superior command line environment IMO and then you can just use rm.
- qntmfred 10y agohttps://www.npmjs.com/package/rimraf https://www.npmjs.com/package/rimraf
- jongalloway2 10y agoLots of options here: http://superuser.com/questions/256105/how-do-i-delete-a-folder-which-is-nested-quite-deep-and-avoid-file-name-too-lon http://superuser.com/questions/256105/how-do-i-delete-a-fold... If you have 7-zip installed, you can open the parent directory in 7-zip file manager and delete it from there.
- josteink 10y agoOne approach (which I've used in our build definition where we ensure we have a clean workspace) is to rename all folders to "a" and recursively dig into them before deleting. So \a_quite\long\path\with_files\module.js becomes \a\a\a\a\module.js And you can usually delete that quite fine. It's terrible. It's ugly. But it works.