-
Notifications
You must be signed in to change notification settings - Fork 53
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 version mismatch. Expected 47, got 46. #11
Comments
There seems to be a few issues cropping up with newer versions of node, and node-gyp. I'll have some free time this weekend to sort them out. |
I keep getting this error: Error: Module version mismatch. Expected 50, got 49. has the previous issue ever been resolved? |
@Camyll Yea, in the past people have fixed the issue by rebuilding their node-gyp modules. |
This is not working for me :( |
I too am getting this issue on my daily driver laptop. However, on one of my LXC containers, it is working well. So I first compared versions: LXC container (working):
Laptop (errors out):
I then compared the Any ideas why? I think that downgrading EDIT: Forgot to mention that when I copy the |
@ak2766 The issue stems from an issue with node-gyp trying to compile node-ffi and dependencies. By copying over your node_modules, you are essentially skipping the compilation step on your laptop and using the pre-built binaries generated in your container. I've been doing some investigations over the last few weeks to try and get to the bottom of it, but it seems to be an issue within the node source tree, something not easy to fix. I'm in discussions with some people in the know on how we can address the issue. |
It seems that this is caused by updating your Node version without rebuilding your Node modules. This makes sense as node-gyp compiles native modules against the currently installed version of node. Try following some of the steps here to see if it fixes your problem. |
As of version 0.2.0 diskusage now uses native, platform specific bindings. This should resolve any of the previous installation issues. If you are still experiencing issues, feel free to comment on this issue and I will take a further look. |
hi, i'm trying to use your module but i got this error:
Error: Module version mismatch. Expected 47, got 46.
any idea why?
The text was updated successfully, but these errors were encountered: