Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error occurs when running on Alpine Linux v3.8 #107

Open
gazf opened this issue Nov 6, 2018 · 2 comments
Open

Error occurs when running on Alpine Linux v3.8 #107

gazf opened this issue Nov 6, 2018 · 2 comments

Comments

@gazf
Copy link

gazf commented Nov 6, 2018

Please update the sharp version.

package.json

"sharp": "^0.21.0"

When installing to the new Alpine Linux, if the sharp version is old, an error will occur at run time.

internal/modules/cjs/loader.js:736
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: Error relocating /usr/lib/libexpat.so.1: getrandom: symbol not found
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:736:18)
    at Module.load (internal/modules/cjs/loader.js:605:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:544:12)
    at Function.Module._load (internal/modules/cjs/loader.js:536:3)
    at Module.require (internal/modules/cjs/loader.js:643:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (/root/node_modules/sharp/lib/constructor.js:10:15)
    at Module._compile (internal/modules/cjs/loader.js:707:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:718:10)
    at Module.load (internal/modules/cjs/loader.js:605:32)
@aslafy-z
Copy link

aslafy-z commented Nov 6, 2018

Please merge #105

As a workaround, you can use the greenkeeper/sharp-0.21.0 update branch in your package.json file :

"gulp-responsive": "mahnunchik/gulp-responsive#greenkeeper/sharp-0.21.0",

@gazf
Copy link
Author

gazf commented Nov 6, 2018

@aslafy-z Thanks for the advice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants