Skip to content

Commit

Permalink
Add note on how to install dependencies on M1/M2
Browse files Browse the repository at this point in the history
  • Loading branch information
carhartl committed Jun 22, 2023
1 parent 246e335 commit 5c1f5fc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CONTRIBUTING.md
Expand Up @@ -29,6 +29,18 @@ Browse to the project root directory and install the dev dependencies:
npm install -d
```

Note: when running `npm install` on Apple Silicon (M1/M2), the Puppeteer dependency will fail to install. To fix this, install dependencies while skipping to install the Puppeteer executable (not available for Apple Silicon, i.e. arm64):

```bash
export PUPPETEER_EXECUTABLE_PATH=/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome
export PUPPETEER_SKIP_DOWNLOAD=true
npm install -d
```

^ For this to work you must have installed Google Chrome in the default location.

More information on this issue can be found [here](https://github.com/puppeteer/puppeteer/issues/7740) and [here](https://broddin.be/2022/09/19/fixing-the-chromium-binary-is-not-available-for-arm64/).

To execute the build and tests run the following command in the root of the project:

```bash
Expand Down

0 comments on commit 5c1f5fc

Please sign in to comment.