-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Module did not self-register on node 8.1.3 #952
Comments
Hello, the "Module did not self-register" message usually suggests either different versions of node are being used at |
Thanks for you fast response! |
If you've not already tried it, $ readelf -h SOME_PATH/node_modules/sharp/build/Release/sharp.node |
Closing due to inactivity but please feel free to re-open if the original problem persists. |
I have been seeing this same issue with node version v6.9.2 and node 8.9.0. I tried clearing the cache and reinstalling the node modules but it didn't seem to resolve the issue...
but I am still getting the error:
|
@brollb Please make certain that the same major version of node is being used for Could there be a slightly broken global installation of libvips on this machine? What does the suggested |
I am having this issue to, when I try to run the readelf command, it says it's not found. The reason I had to switch node versions was because sharp wasn't compiled for the latest. I've removed the node_modules folder several times with no prevail, and using nvm i made sure that I was on the node version that supported NODE_MODULES 51 (node 7.10.1). Any luck? Spent hours trying to get this package to work... |
@JordanMaxFCB A value of 51 for |
@lovell So what would you recommend to resolving that? I'm not a Node developer, and I do use Node to develop React Native on my own time (this is a work computer), is there a way to check if other node versions exist? Also what would happen if a user wanted to use this library, and had another package with a different node that compiled that? Off-topic, but I can't seem to grasp how Javascript developers do that (I do .NET primarily). But really just wondering if there's a way to check if other nodejs exists on my computer (what you were saying) and how to fix that? |
it's not an ELF but a " Mach-O 64-bit bundle x86_64" "sharp@npm:^0.23.0" |
I'm getting the following error:
module.js:598
return process.dlopen(module, path._makeLong(filename));
^
Error: Module did not self-register.
at Object.Module._extensions..node (module.js:598:18)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (SOME_PATH/node_modules/sharp/lib/constructor.js:9:15)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
There is no problem in node 6.x.
I've tried with npm rebuild, and also a clean install, and the problem persists.
Any clues???
Thanks!
The text was updated successfully, but these errors were encountered: