![]() ![]() ![]() The problem is I haven't found any Puppeteer configuration I can use for such purpose. Force my users to download Chromium at runtime (at first usage for example).Download Chromium selectively at packaging time (still on dev machine).Run npm install to download the correct Chromium revision (1045629). Download all-platform Chromium when npm install (on dev machine) Puppeteer version 19.0.0 Node.js version 16 npm version 8.5.0 What operating system are you seeing the problem on Linux Relevant log output Error: Could not find expected browser (chrome) locally.I should be able to do one of the following: Being current platform Linux, this very version of Chromium is then shipped regardlessly on every platform's app. The problem is: Chromium is downloaded at npm install time, and it's done selectively based on the current platform. It works nice-and-smooth except for this issue:Ĭhromium is not downloaded exception is thrown when the app is executed on a platform different than the one the app has been packaged on.īetter said, I'm developing on a Linux environment and I'm packaging my app for both Linux and Windows, Linux app works fine, Windows app doesn't. ![]() (/mypath/node_modules/puppeteer/install.js:38:27)Īt Module._compile (internal/modules/cjs/loader.js:936:30)Īt Object.Module._extensions.js (internal/modules/cjs/loader.js:947:10)Īt Module.load (internal/modules/cjs/loader.js:790:32)Īt Function.Module._load (internal/modules/cjs/loader.js:703:12)Īt (internal/modules/cjs/loader.I'm building a UI-automator with Puppeteer and I'm shipping it as a Electron-packaged app. mypath/node_modules/puppeteer/install.jsĪt Function.Module._resolveFilename (internal/modules/cjs/loader.js:772:15)Īt Function.Module._load (internal/modules/cjs/loader.js:677:27)Īt Module.require (internal/modules/cjs/loader.js:830:19)Īt require (internal/modules/cjs/helpers.js:68:18)Īt Object. > postinstall /mypath/node_modules/puppeteerĮrror: Cannot find module 'puppeteer/internal/node/install.js' Trying to install puppeteer on Centos 7 npm i puppeteer ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |