Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staging folder not created #27

Closed
nmarks413 opened this issue Jan 27, 2021 · 3 comments
Closed

Staging folder not created #27

nmarks413 opened this issue Jan 27, 2021 · 3 comments

Comments

@nmarks413
Copy link

I ran -o Downloads, as I downloaded worm-scraper in users/myusername. The program then said, after downloading all files, Error: ENOENT: no such file or directory, rmdir 'C:\Users\myusername\staging\worm\OEBPS\chapters'. I ran the program again, the last interlude was downloaded, and the same error occurred. I then ran npm -g worm-scraper, and the issue persisted. I then created the directory, and everything worked fine. I would suggest using fs to see if the file exists, and if it does not, create it.

@domenic
Copy link
Owner

domenic commented Jan 27, 2021

Thanks. Can you provide the full sequence of commands you ran, so that I can reproduce the problem locally? Is it just

worm-scraper -o Downloads

?

@nmarks413
Copy link
Author

yes

@domenic
Copy link
Owner

domenic commented Jan 30, 2021

I was not able to reproduce this. The steps I took were:

cd %Temp%
mkdir ws
cd ws
npm install -g worm-scraper
worm-scraper -o Downloads

The program ran with no problems and produced a new epub (named Downloads, instead of the default name Worm.epub).

It sounds like you did some kind of install that was not npm install -g worm-scraper, which might have messed things up. Since that's not supported, I'll close this, since it does not indicate a bug in the program, but rather some weird state you got your system into.

But if you can reproduce the problem using steps similar to the ones I posted, then let me know and I can reopen and investigate.

@domenic domenic closed this as completed Jan 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants