Node.js - 找不到绑定文件

时间:2016-05-26 10:59:10

标签: node.js windows-7 node-ffi

我尝试使用Nodejs v6.2.0在我的Windows 7 PC上运行node-ffi的应用程序,但它崩溃时出现以下错误。我尝试了各种方法,但没有解决我的问题

   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

2 个答案:

答案 0 :(得分:2)

尝试安装模块:

npm install bindings --save
npm install

重新启动应用。

https://github.com/TooTallNate/node-bindings

的更多信息

答案 1 :(得分:0)

我也面临同样的问题。对我来说,将节点版本从7.3.0降级到6.9.2。我不确定究竟是什么原因。