Skip to content

Commit

Permalink
Update installation instructions for nodejs + Puppeteer
Browse files Browse the repository at this point in the history
  • Loading branch information
benholmen authored and freekmurze committed May 21, 2024
1 parent 1c5c1fe commit f845398
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ npm install puppeteer --location=global
On a [Forge](https://forge.laravel.com) provisioned Ubuntu server you can install the latest stable version of Chrome like this:

```bash
curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 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 libgbm-dev libxshmfence-dev
sudo npm install --location=global --unsafe-perm puppeteer@^17
sudo chmod -R o+rx /usr/lib/node_modules/puppeteer/.local-chromium
sudo npm install --location=global --unsafe-perm puppeteer
npx puppeteer browsers install chrome
```

### Custom node and npm binaries
Expand Down

0 comments on commit f845398

Please sign in to comment.