Installing puppeteer on android device.
See original GitHub issueDear support. I am planning to include puppeteer with my APK application. Well, i installed NodeJs on my android device, and i can connect to it Via React Native. Now i want to install puppeteer to the Node on my Android but i got this error message while installing :
> puppeteer@1.15.0 install /data/data/io.tempage.dorynode/app_HOME/node_modules/puppeteer
> node install.js
/data/data/io.tempage.dorynode/app_HOME/node_modules/puppeteer/node6/lib/helper.js:283
throw new Error(message);
^
Error: Unsupported platform: android
at assert (/data/data/io.tempage.dorynode/app_HOME/node_modules/puppeteer/node6/lib/helper.js:283:11)
at new BrowserFetcher (/data/data/io.tempage.dorynode/app_HOME/node_modules/puppeteer/node6/lib/BrowserFetcher.js:96:7)
at createBrowserFetcher (/data/data/io.tempage.dorynode/app_HOME/node_modules/puppeteer/node6/lib/Puppeteer.js:82:12)
at Object.<anonymous> (/data/data/io.tempage.dorynode/app_HOME/node_modules/puppeteer/install.js:39:34)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
npm WARN enoent ENOENT: no such file or directory, open '/data/data/io.tempage.dorynode/app_HOME/package.json'
npm WARN app_HOME No description
npm WARN app_HOME No repository field.
npm WARN app_HOME No README data
npm WARN app_HOME No license field.
npm ERR! Linux 3.18.71-14409750
npm ERR! argv "/data/data/io.tempage.dorynode/files/bin/node" "/data/user/0/io.tempage.dorynode/files/bin/npm" "i" "puppeteer"
npm ERR! node v6.11.4
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! puppeteer@1.15.0 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the puppeteer@1.15.0 install script 'node install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the puppeteer package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs puppeteer
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls puppeteer
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /data/data/io.tempage.dorynode/app_HOME/npm-debug.log
1|c7ltechn:/data/user/0/io.tempage.dorynode/app_HOME $
Well, i know that chromium is available for Android and it supports headless. Please advice.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:9
Top Results From Across the Web
Puppeteer - Device Emulation
Step 1 − Create a new file within the directory where the node_modules folder is created (location where the Puppeteer and Puppeteer core...
Read more >How to use puppeteer to turn Chromium on in mobile ...
You can either set them manually (see the answer by Yevhen) or use one of the default device descriptors puppeteer provides via ...
Read more >Puppeteer | Puppeteer
puppeteer is a product for browser automation. When installed, it downloads a version of Chromium, which it then drives using puppeteer-core . Being...
Read more >detox-puppeteer
If you install your node modules in a build step that doesn't use this container, you can set PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true when running ...
Read more >Testing with Puppeteer - A Complete Guide
To install Puppeteer, run the following command: ... will enable you to test your web pages on different devices, including Android and iOS....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello, after a week of hit & trial I came with a solution to make it work on Android with Termux. Follow up the gist Starting point repo takes a screenshot using puppeteer in termux.
Unfortunately we don’t have android Chromium builds for you in the same place that we have mac/win/linux builds. You should try using puppeteer-core and connecting to a Chrome instance you launched yourself.
If you get it working please report back. I am interested!