A big commit with a bunch of node modules so I could run puppeteer for Walmart. Added some todos and Headway's templates.
This commit is contained in:
22
Scripts/node_modules/puppeteer/install.mjs
generated
vendored
22
Scripts/node_modules/puppeteer/install.mjs
generated
vendored
@ -16,17 +16,19 @@
|
||||
* necessary.
|
||||
*/
|
||||
|
||||
async function importInstaller() {
|
||||
try {
|
||||
return await import('puppeteer/internal/node/install.js');
|
||||
} catch {
|
||||
console.warn(
|
||||
'Skipping browser installation because the Puppeteer build is not available. Run `npm install` again after you have re-built Puppeteer.'
|
||||
);
|
||||
process.exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
const {downloadBrowser} = await (async () => {
|
||||
try {
|
||||
return await import('puppeteer/internal/node/install.js');
|
||||
} catch {
|
||||
console.warn(
|
||||
'Skipping browser installation because the Puppeteer build is not available. Run `npm install` again after you have re-built Puppeteer.'
|
||||
);
|
||||
process.exit(0);
|
||||
}
|
||||
})();
|
||||
const {downloadBrowser} = await importInstaller();
|
||||
downloadBrowser();
|
||||
} catch (error) {
|
||||
console.warn('Browser download failed', error);
|
||||
|
||||
Reference in New Issue
Block a user