Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Commit

Permalink
try another way
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson committed Jan 22, 2024
1 parent 9e65d88 commit 8960a9c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44190,7 +44190,10 @@ const puppeteer = __nccwpck_require__(7174);

async function Run() {
try {
await exec.exec('npm i -g puppeteer');
// Set an environment variable to skip Puppeteer's automatic Chromium download
process.env.PUPPETEER_SKIP_CHROMIUM_DOWNLOAD = 'true';
// Install Puppeteer (without downloading Chromium)
await exec.exec('npm install puppeteer --no-save');
// Configure Puppeteer to use the installed Chromium
const browserFetcher = puppeteer.createBrowserFetcher({
path: path.join(__dirname, 'node_modules/puppeteer/.local-chromium'),
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion src/activate.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ const puppeteer = require('puppeteer');

async function Run() {
try {
await exec.exec('npm i -g puppeteer');
// Set an environment variable to skip Puppeteer's automatic Chromium download
process.env.PUPPETEER_SKIP_CHROMIUM_DOWNLOAD = 'true';
// Install Puppeteer (without downloading Chromium)
await exec.exec('npm install puppeteer --no-save');
// Configure Puppeteer to use the installed Chromium
const browserFetcher = puppeteer.createBrowserFetcher({
path: path.join(__dirname, 'node_modules/puppeteer/.local-chromium'),
Expand Down

0 comments on commit 8960a9c

Please sign in to comment.