Skip to content

Instantly share code, notes, and snippets.

@bradobro
Last active September 15, 2021 14:51
Show Gist options
  • Save bradobro/102b2765d8bf69b032d7288c578b80b2 to your computer and use it in GitHub Desktop.
Save bradobro/102b2765d8bf69b032d7288c578b80b2 to your computer and use it in GitHub Desktop.
Doing Web dev on Macbook M1 (Apple Silicon)

Start terminal using Rosetta

(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

Chromium (dependency of puppeteer):

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

@bradobro
Copy link
Author

Thanks @rlundquist3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment