hackium
hackium copied to clipboard
Hackium on Mac M1 (arm65)
Trying to install hackium globally on my mac results in the following error-code
npm ERR! code 1
npm ERR! path /usr/local/lib/node_modules/hackium/node_modules/puppeteer
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! The chromium binary is not available for arm64:
npm ERR! If you are on Ubuntu, you can install with:
npm ERR!
npm ERR! apt-get install chromium-browser
npm ERR!
npm ERR! /usr/local/lib/node_modules/hackium/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:112
npm ERR! throw new Error();
npm ERR! ^
npm ERR!
npm ERR! Error
npm ERR! at /usr/local/lib/node_modules/hackium/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:112:19
npm ERR! at FSReqCallback.oncomplete (node:fs:198:21)
Yeah! Facing the same issue here
Install chromium
using brew
and export these environment variables in your ~/.zshrc
file.
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
export PUPPETEER_EXECUTABLE_PATH=`which chromium`