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 on boot with sharp (Mac Sierra, Node v8.9.0) #1043

Closed
niftylettuce opened this issue Nov 25, 2017 · 4 comments
Closed

Error on boot with sharp (Mac Sierra, Node v8.9.0) #1043

niftylettuce opened this issue Nov 25, 2017 · 4 comments
Labels

Comments

@niftylettuce
Copy link

Related to #939 and #1031

Node v8.9.0 with fresh sharp install on Mac Sierra related to libvips install issue:

module.js:664
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: dlopen(/Users/user/Projects/project/template/node_modules/sharp/build/Release/sharp.node, 1): Library not loaded: @rpath/libvips-cpp.42.dylib
  Referenced from: /Users/user/Projects/project/template/node_modules/sharp/build/Release/sharp.node
  Reason: image not found
    at Object.Module._extensions..node (module.js:664:18)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/user/Projects/project/template/node_modules/sharp/lib/constructor.js:9:15)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/user/Projects/project/template/node_modules/sharp/lib/index.js:3:15)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
@lovell
Copy link
Owner

lovell commented Nov 25, 2017

  • Are there any errors during npm install sharp?
  • Does the node_modules/sharp/vendor directory, created during npm install, exist?
  • Has vips been installed globally on this machine via brew at any time in the past?
  • What does otool -L node_modules/sharp/build/Release/sharp.node say?

@lovell
Copy link
Owner

lovell commented Jan 1, 2018

@niftylettuce Are you able to provide the requested details should this problem still be occurring?

@davidbarton
Copy link

Had exact same error. Fixed by upgrade from "^0.18.4" to "^0.20.0"

@owenhoskins
Copy link

owenhoskins commented Mar 21, 2018

This error randomly occurred after adding an unrelated package with yarn just a moment ago. I was already at "^0.20.0" but running yarn upgrade sharp resolved the issue anyway!

Repository owner locked and limited conversation to collaborators Mar 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants