-
Notifications
You must be signed in to change notification settings - Fork 8
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
Puppeteer didn't work for me on Windows #3
Comments
I modified the browser-constant that way: const browser = await puppeteer.launch({
headless: true,
ignoreDefaultArgs: ['--disable-extensions'],
args: ['--no-sandbox', '--disable-setuid-sandbox']
}); The source of the changes were two pages:
It seems to be a known problem, that puppeteer doesn't work on WSL, although it is a slightly crippled Ubuntu. I did the tests on my private computer because of your decision to use the latest and greatest and I didn't want my business machine have a slightly strange configuration. On my business machine runs node 12.something. On my business machine a already do tests with puppeteer, so it is no general Windows-problem. On the other hand: I don't see how I could run it on my private machine "outside" WSL. |
Ok interesting so those changes you made, does it work now? By any chance did you try the version of the code in I wonder if it would work on your private business computer now? If the changes you suggested are still not working: I would possibly try these: npm i -g npx
# Then try npx again
# Remove the package-lock.json file and run
npm cache verify
npm install
# I'm not familiar with WSL as I don't use Windows, but could you try the regular command prompt So I think 5 things to try:
Hopefully one of those things works! Unless you already got it working with the solution you mentioned above |
Both changes had no effect. |
I have node 14.8-0 installed via nvm on Windows10 with WSL1.
I installed yarn after calling
npm start
didn't work. The outcome wasn't better.Be it npm or yarn, the call results mainly with the same errors:
The text was updated successfully, but these errors were encountered: