我正在尝试使用Serialport模块读取Arduino数据,但模块无法正常工作

时间:2018-09-01 18:27:06

标签: node.js node-serialport

我收到以下错误跟踪:

C:\Users\Maaz\Desktop\FYP Project\Server\node_modules\bindings\bindings.js:96
  throw err
  ^

Error: Could not locate the bindings file. Tried:
 → C:\Users\Maaz\Desktop\FYP Project\Server\node_modules\@serialport\bindings\build\bindings.node
 → C:\Users\Maaz\Desktop\FYP Project\Server\node_modules\@serialport\bindings\build\Debug\bindings.node
 → C:\Users\Maaz\Desktop\FYP Project\Server\node_modules\@serialport\bindings\build\Release\bindings.node
 → C:\Users\Maaz\Desktop\FYP Project\Server\node_modules\@serialport\bindings\out\Debug\bindings.node
 → C:\Users\Maaz\Desktop\FYP Project\Server\node_modules\@serialport\bindings\Debug\bindings.node
 → C:\Users\Maaz\Desktop\FYP Project\Server\node_modules\@serialport\bindings\out\Release\bindings.node
 → C:\Users\Maaz\Desktop\FYP Project\Server\node_modules\@serialport\bindings\Release\bindings.node
 → C:\Users\Maaz\Desktop\FYP Project\Server\node_modules\@serialport\bindings\build\default\bindings.node
 → C:\Users\Maaz\Desktop\FYP Project\Server\node_modules\@serialport\bindings\compiled\8.11.1\win32\x64\bindings.node
    at bindings (C:\Users\Maaz\Desktop\FYP Project\Server\node_modules\bindings\bindings.js:93:9)
    at Object.<anonymous> (C:\Users\Maaz\Desktop\FYP Project\Server\node_modules\@serialport\bindings\lib\win32.js:1:98)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\Users\Maaz\Desktop\FYP Project\Server\node_modules\@serialport\bindings\lib\index.js:6:22)
[nodemon] app crashed - waiting for file changes before starting...

0 个答案:

没有答案