(Props to @rlundquist3!)
- you'll want to do this before installing homebrew and any other brew packages or other dependencies, including nvm and rbenv
- before doing project setup:
- finder > go > applications
- right-click your terminal and duplicate (maybe give it a better name like "iTerm Rosetta" for clarity)
- right-click > "get info"
- check "open using Rosetta"
- open the Rosetta terminal and proceed with project setup
when running yarn install you will get an error stating that Chromium cannot be installed, to get around this:
- brew install chromium
- add the following to your .zshrc (or .bash_profile, etc.)
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
export PUPPETEER_EXECUTABLE_PATH=which chromium
- reload your shell (source ~/.zshrc)
after this, the puppeteer install should succeed
Thanks @rlundquist3