Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node.js - Could not locate the bindings file

I'm trying to run an app of node-ffi on my windows 7 PC with Nodejs v6.2.0, but it crashes with the following error . I tried a variety of methods, but did not resolve my problem

   E:\iwork\workbase\myapp\node_modules\bindings\bindings.js:91 Uncaught Error: Could not locate the bindings file. Tried:
 → E:\iwork\workbase\myapp\node_modules\ref\build\binding.node
 → E:\iwork\workbase\myapp\node_modules\ref\build\Debug\binding.node
 → E:\iwork\workbase\myapp\node_modules\ref\build\Release\binding.node
 → E:\iwork\workbase\myapp\node_modules\ref\out\Debug\binding.node
 → E:\iwork\workbase\myapp\node_modules\ref\Debug\binding.node
 → E:\iwork\workbase\myapp\node_modules\ref\out\Release\binding.node
 → E:\iwork\workbase\myapp\node_modules\ref\Release\binding.node
 → E:\iwork\workbase\myapp\node_modules\ref\build\default\binding.node
 → E:\iwork\workbase\myapp\node_modules\ref\compiled\6.1.0\win32\ia32\binding.node
like image 207
Outlooks Chan Avatar asked May 26 '16 10:05

Outlooks Chan


2 Answers

Try to install module:

npm install bindings --save
npm install

re launch app.

More info at https://github.com/TooTallNate/node-bindings

like image 152
Jesus Segnini Avatar answered Oct 18 '22 16:10

Jesus Segnini


I also faced the same issue. For me, downgrading the node version from 7.3.0 to 6.9.2 worked. I am not sure what is the exact reason though.

like image 1
Ishan Mihir Avatar answered Oct 18 '22 16:10

Ishan Mihir