Skip to content

Commit

Permalink
docs: add cairo deps (#535)
Browse files Browse the repository at this point in the history
* docs: add cairo deps

Add instructions for installing OS-level dependencies required for building `cairo` NPM package.

* Update README.md

Co-authored-by: Noah Eigenfeld <[email protected]>

---------

Co-authored-by: Noah Eigenfeld <[email protected]>
  • Loading branch information
jhpedemonte and noah-eigenfeld authored Nov 3, 2023
1 parent eb1eb84 commit 9bf55b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ or
git clone https://github.com/watson-developer-cloud/discovery-components.git
```

3. To generate the dependencies for all of the packages, run the following at the root directory:
3. Install OS dependencies for building NPM packages (required for building `cairo`, which is used by `pdfjs`):

Follow the installation instructions for your OS from https://github.com/Automattic/node-canvas#compiling.

4. To generate the dependencies for all of the packages, run the following at the root directory:

```
yarn
Expand Down

0 comments on commit 9bf55b6

Please sign in to comment.