Electron beta appears to use system zlib, can conflict with sharp
See original GitHub issuehttps://github.com/lovell/sharp/issues/843#issuecomment-318771819 reported by @Apophenia
ELECTRON_ASAR.js:173 Uncaught Error: /lib/x86_64-linux-gnu/libz.so.1: version `ZLIB_1.2.9' not found (required by /[path]/electron-quick-start/node_modules/sharp/build/Release/../../vendor/lib/libpng16.so.16)
at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20)
at Object.Module._extensions..node (module.js:598:18)
at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> ([path]/electron-quick-start/node_modules/sharp/lib/constructor.js:9:15)
at Object.<anonymous> ([path]/electron-quick-start/node_modules/sharp/lib/constructor.js:234:3)
Electron v1.7.5 beta
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:37 (16 by maintainers)
Top Results From Across the Web
Electron beta appears to use system zlib, can conflict with sharp
Electron beta appears to use system zlib, can conflict with sharp.
Read more >bSB - River Thames Conditions - Environment Agency - GOV.UK
2006 mini cooper s timing chain or belt, Zuiderpoort dordrecht nieuwbouw, Chateau de salettes wine, Bydgoszcz uniwersytet kierunki, Al mushrif wedding hall ...
Read more >Chem3D 17.0 User Guide - University of York
Chem3D is compatible with Microsoft Office 2013 and Windows 8.1 for both 32 and 64 bit machines. Depiction and animation of GAMESS IR...
Read more >This package contains third-party software components governed by ...
This package is comprised of multiple separate components each with their own licensing requirements. There is some Unity wrapper code in the package...
Read more >History of Ghostscript versions 9.n
Ken Sharp <ken.sharp@artifex.com> ... pdfwrite doesn't use it for clipping but very much does use it for ... build is picking up the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I am running on my local ubuntu 14.04 VM. Setting up the environment variable using the following command did NOT work for me.
LD_PRELOAD="/app/node_modules/sharp/vendor/lib/libz.so"However, copying the libz.so* to /lib/x86_64-linux-gnu/ worked for mecp /app/node_modules/sharp/vendor/lib/libz.so* /lib/x86_64-linux-gnu/Possible workaround for systems that still provide only zlib 1.2.8 would be to use something like: