Open 0rangebananaspy opened 1 year ago
You'll have to add chromium/chrome browser to your repository. The tool puppets Chrome in order to run the user-experience browser.
ADDED: Note that if you're running as Root, you'll also need to add --no-sandbox
to the options in the run-tests.js file.
You'll have to add chromium/chrome browser to your repository. The tool puppets Chrome in order to run the user-experience browser.
ADDED: Note that if you're running as Root, you'll also need to add
--no-sandbox
to the options in the run-tests.js file.
@colinmo Can you go into a bit more detail on this? I've got Chrome and Chromium both installed on the server, but I'm also getting this same error. When you say "add it to the repo," is that implying something like NPM should be installing it there, because that doesn't seem totally right.
Sorry for delay.
I found that I had to add chromium/ chrome (either) AND set the environment variable "PUPPETEER_EXECUTABLE_PATH" that tells puppeteer where to run - /usr/bin/chromium-browser in my case. Does that help?
@colinmo Can you go into a bit more detail on this? I've got Chrome and Chromium both installed on the server, but I'm also getting this same error. When you say "add it to the repo," is that implying something like NPM should be installing it there, because that doesn't seem totally right.
Sorry, in addition to the above answer you don't need to add it to the actual repo. You're right, it's just it needed to be installed where your code can access it. Much more accurate description.
I'm running on my local virtual server on Proxmox with Ubuntu 22.04 LTS, Node.js v18.16.1. Everytime
npm run test-pages
give me this error.any clue to make it run?
Screenshot: https://imgur.com/bIZDTte