Automattic / Automattic/node-canvas

Nix Os & Devbox & pkg-config

Open
#2,440 0 comments 1 reaction 0 assignees View on GitHub
Installation help
Dominant language
JavaScript
Stars
10.7k
Forks
1.2k
Avg merge
4d 8h
Merged PRs (30d)
1

Description

Hello,

During npm install within application which uses canvas, I am facing below issue:

```
gyp: Call to 'pkg-config cairo --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
```

Devbox version: 0.13.5

Here is my devbox.json:

```
{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.12.0/.schema/devbox.schema.json",
"packages": [
"python@3.10",
"nodejs@18",
"pkg-config@latest",
"cairo@latest",
"pango@latest",
"libpng@latest",
"giflib@latest",
"librsvg@latest",
"libjpeg@latest",
"pixman@latest"
],
"env": {
"DEVBOX_COREPACK_ENABLED": "true"
},
"shell": {
"init_hook": [],
"scripts": {
"test": [
"echo \"Error: no test specified\" && exit 1"
]
}
}
}
```

Maybe anyone has an idea what could be an issue ? Or how to fix it?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.