Automattic / Automattic/node-canvas
Error: libjpeg.so.8: cannot open shared object file: No such file or directory
- Dominant language
- JavaScript
- Stars
- 10.7k
- Forks
- 1.2k
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 1
Description
## Issue
I'm always getting this error after installation.
```
internal/modules/cjs/loader.js:1187
return process.dlopen(module, path.toNamespacedPath(filename));
Error: libjpeg.so.8: cannot open shared object file: No such file or directory
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1187:18)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/home/container/node_modules/canvas/lib/bindings.js:3:18)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
```
## Steps to Reproduce
1. Install dependencies and canvas with npm i canvas
2. Get this error after trying to start the module (node index.js)
## What I've tried
- Rebuilding with electron
- Rebuilding with node-gyp
It will always return the same error
## Your Environment
* Version of node-canvas: 2.6.1
* Environment: Node v12 in Docker v19.03.8 (Running debian)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.