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

Not Working - Chromium revision is not downloaded #6

Open
lnk3 opened this issue Mar 11, 2020 · 6 comments
Open

Not Working - Chromium revision is not downloaded #6

lnk3 opened this issue Mar 11, 2020 · 6 comments

Comments

@lnk3
Copy link
Contributor

lnk3 commented Mar 11, 2020

I maybe did something wrong, or missed a package somewhere but it doesn't work.
Error

It suggested me to npm install but that already went well.
Npm-Install

I'm on Windows and I did install node.js, aria2c and ffmpeg and added them to the $PATH variable.

@sup3rgiu
Copy link
Owner

Hi,
try these steps that I found online (this error seems pretty common, but it's about puppeter):

  • Remove lock file "package-lock.json"
  • Run npm cache clean --force inside the PoliDown folder
  • Run npm install

Let me know if it resolves your issue

@lnk3 lnk3 closed this as completed Mar 11, 2020
@lnk3 lnk3 reopened this Mar 11, 2020
@lnk3
Copy link
Contributor Author

lnk3 commented Mar 11, 2020

No it didn't work... same error

@sup3rgiu
Copy link
Owner

Then you could try to hardcode the Chromium executable path in this way:
image

You have to add
executablePath: "./node_modules/puppeteer/.local-chromium/win64-656675/chrome-win/chrome.exe",
inside the file polidown.js, as puppeter launch option.

"win64-656675" in the path could be different. Navigate to that path (in the PoliDown folder) and copy your version number.

@lnk3
Copy link
Contributor Author

lnk3 commented Mar 11, 2020

It seems like I don't have the .local-chromium folder
image

Is it possible that the issue is due to not having Chrome installed, by any means?
I don't think so, because if any "chromium files" (sorry if I'm telling something wrong) would be needed, they should already be in my system, since I use Microsoft Edge which runs on Chromium too.

@sup3rgiu
Copy link
Owner

Sorry for the late reply.
From the screenshot, seems you are on a Debian distribution. Is that right?

If so, try to install some dependencies running this command:
sudo apt-get install gconf-service libasound2 libatk1.0-0 libatk-bridge2.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget

Then cd inside the PoliDown folder and try npm install puppeteer

And so check if now you have the .local-chromium folder

@GDaglio
Copy link

GDaglio commented Mar 14, 2020

Try to reinstall everything from the beginning, it worked for me

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

3 participants