Skip to content

Commit b4caff1

Browse files
authored
docs(rimraf): document fs.rm maxRetries on Windows (#230)
1 parent c5a7b8f commit b4caff1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/modules/rimraf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ rmdirSync(path, { recursive: true });
4343

4444
For command-line usage, such as npm scripts, you can run Node in eval mode:
4545
```bash
46-
node -e "fs.rmSync('./foo', { recursive: true, force: true })"
46+
node -e "require('fs').rmSync('./foo', { recursive: true, force: true, maxRetries: process.platform === 'win32' ? 10 : 0 })"
4747
```
4848

4949
## premove (Node 8.x and up)

0 commit comments

Comments
 (0)