3 ms·
'npm install -g rimraf' will provide the special software needed to delete files whose path names are too long in Windows. I deal with this all the time with At
by NoGravitas 11y ago
'npm install -g rimraf' will provide the special software needed to delete files whose path names are too long in Windows. I deal with this all the time with Atom extensions, and it drives me crazy. It drives me crazy that it's even possible for the normal file creation APIs to create files that the normal file rename and delete APIs can't process.
- beeboop 11y agoI was honestly in disbelief when I first came across it. It just seems insanely stupid on so many levels.
- jakub_g 11y agoAFAIR, the case is that NTFS supports long file paths very well, and Windows has APIs to deal with long paths, but a lot of software (Windows Explorer inexplicably being one of them) uses old APIs that choke on paths over 260 chars. `rimraf` solves the issue of deleting such files and it's one of the must-have tools when doing node dev on windows, like `grep` etc