When running worm-scraper convert... , if there is no pre-existing "staging" path (aka upon fresh run), it gives this error:
(node:6172) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
And that means fs.rmdir no longer allows for no existing path with the recursive: true arg.
The fix is to simply change line 90 in worm-scraper.js to the following:
return fs.rm(chaptersPath, { force: true, recursive: true, maxRetries: 3 })
And that made it work for me.
When running
worm-scraper convert...
, if there is no pre-existing "staging" path (aka upon fresh run), it gives this error:(node:6172) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
And that meansfs.rmdir
no longer allows for no existing path with therecursive: true
arg.The fix is to simply change line 90 in
worm-scraper.js
to the following:return fs.rm(chaptersPath, { force: true, recursive: true, maxRetries: 3 })
And that made it work for me.