简体   繁体   中英

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

Try to install module:

npm install bindings --save
npm install

re launch app.

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM