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

Installing modules with binary bindings #30

Open
vsviridov opened this issue Oct 5, 2016 · 9 comments
Open

Installing modules with binary bindings #30

vsviridov opened this issue Oct 5, 2016 · 9 comments

Comments

@vsviridov
Copy link

Using node-nightly I get errors like Error: Module version mismatch. Expected 51, got 48. for modules with native bindings.

I tried doing something like env NODE_PATH=/usr/local/lib/node_modules/node-nightly/node-nightly/ /usr/local/lib/node_modules/node-nightly/node-nightly/bin/npm install bcrypt but that doesn't seem to help

@hemanth
Copy link
Owner

hemanth commented Oct 5, 2016

What's your node version? Operating system?

@vsviridov
Copy link
Author

OSX 10.10.5
Node 6.7.0

@linusnorton
Copy link

I'm also having this problem. Is it possible that npm is using the standard version of node and building dependencies against the wrong API? I'm not sure what the solution to this would be, maybe npm-nightly?

@vsviridov
Copy link
Author

Yeah, even the npm bundled with node-nightly seems to just use the bindings in the default path.

@linusnorton
Copy link

Where is the npm bundled with node-nightly located?

@vsviridov
Copy link
Author

On my mac it is here /usr/local/lib/node_modules/node-nightly/node-nightly/bin/npm

@linusnorton
Copy link

Weird, it doesn't seem to be in there or /usr/lib/node_modules/node-nightly/ on my linux box

@vsviridov
Copy link
Author

I did which node-nightly and then followed the symlinks. Your node path likely going to be different.

@vsviridov
Copy link
Author

Ok, so I ran the node-nightly /usr/local/.../npm install and it seemed to work.

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

3 participants