node-chromium icon indicating copy to clipboard operation
node-chromium copied to clipboard

Is there a way to specify what platform binary we'd like?

Open aceamarco opened this issue 1 year ago • 2 comments

I'd like to install a linux binary of chromium using this tool however when I run npm install chromium I only get the Windows binary. Any help would be appreciated, thank you.

aceamarco avatar May 11 '23 19:05 aceamarco

Tried using node install chromium --platform=linux but I still get back the chrome-win binary

aceamarco avatar May 12 '23 18:05 aceamarco

@aceamarco Platform is automatically selected according to the platform on which you launch package manager. So, if you do e.g. npm install on Linux it should download Linux binaries: https://github.com/dtolstyi/node-chromium/blob/master/utils.js#L18

dtolstyi avatar May 12 '23 22:05 dtolstyi