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

Example command not working #10

Open
MattLomb opened this issue Sep 22, 2023 · 1 comment
Open

Example command not working #10

MattLomb opened this issue Sep 22, 2023 · 1 comment

Comments

@MattLomb
Copy link

Hi,
I am trying to execute your example command "$ node extract -u /data/urls.txt-d /data/web-extract -c 35 -t 90000", but it returns the following message "__dirname is not defined".
I have also tried with the following command "$ node extract -u /data/urls.txt -d /data/web-extract -c 35 -t 90000" but it returns me always the same error.
I am executing the program inside the root folder of the project.
Can you please help me?

@svnhub
Copy link

svnhub commented Oct 10, 2024

You can add
const __dirname = path.resolve();
after the path import in cli.js if not defined, maybe that will help?

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