Mac M1 Issue with puppeteer
th-m opened this issue · comments
Thomas Valadez commented
Ran into an issue with the initial npm i
npm ERR! code 1
npm ERR! path /Users/thom/Sites/mike/fishwerwoods.com/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! sudo apt install chromium
npm ERR!
npm ERR!
npm ERR! sudo apt install chromium-browser
npm ERR!
npm ERR! /Users/thom/Sites/mike/fishwerwoods.com/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:115
npm ERR! throw new Error();
npm ERR! ^
npm ERR!
npm ERR! Error
npm ERR! at /Users/thom/Sites/mike/fishwerwoods.com/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:115:27
npm ERR! at FSReqCallback.oncomplete (node:fs:198:21)
npm ERR!
npm ERR! Node.js v17.8.0
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/thom/.npm/_logs/2022-09-14T03_22_56_676Z-debug-0.log
I was able to resolve the issue following this posts guidance.
https://linguinecode.com/post/how-to-fix-m1-mac-puppeteer-chromium-arm64-bug
Adam Timur Aslan commented
Hmm installed chromium and opened it without issue but still cant install properly using the M2