node-nightly icon indicating copy to clipboard operation
node-nightly copied to clipboard

Installing modules with binary bindings

Open vsviridov opened this issue 8 years ago • 9 comments

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

vsviridov avatar Oct 05 '16 00:10 vsviridov

What's your node version? Operating system?

hemanth avatar Oct 05 '16 03:10 hemanth

OSX 10.10.5 Node 6.7.0

vsviridov avatar Oct 06 '16 00:10 vsviridov

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?

linusnorton avatar Oct 06 '16 20:10 linusnorton

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

vsviridov avatar Oct 06 '16 20:10 vsviridov

Where is the npm bundled with node-nightly located?

linusnorton avatar Oct 06 '16 20:10 linusnorton

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

vsviridov avatar Oct 06 '16 20:10 vsviridov

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

linusnorton avatar Oct 06 '16 21:10 linusnorton

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

vsviridov avatar Oct 06 '16 21:10 vsviridov

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

vsviridov avatar Oct 07 '16 23:10 vsviridov