运行 nw.js 中的节点串口
Running node-serialport in nw.js
我正在尝试 运行 node-serialport in nw.js. After following the nw.js documentation concerning native modules,node-serialport 似乎构建得很好,并且 运行 在常规节点进程中非常完美。
不幸的是,我在 nw.js 控制台 window 中收到以下错误:
{project_dir}\node_modules\serialport\node_modules\bindings\bindings.js:83 Uncaught Error: Module version mismatch. Expected 48, got 46.
我怎样才能运行把这些放在一起?我是否漏掉了一些明显的东西?
请注意,我目前 运行宁:
- Windows 7 x64
- 节点 v4.4.4
- npm v2.4.1
- nw.js v0.15.0
- node-gyp v3.3.1
- 串口 v3.1.2
显然我需要更新到 Current 版本的 Node (v6.2.0) 而不是 LTS 版本 (v4.4.4 ).更新并重建串口后,一切正常!
我正在尝试 运行 node-serialport in nw.js. After following the nw.js documentation concerning native modules,node-serialport 似乎构建得很好,并且 运行 在常规节点进程中非常完美。
不幸的是,我在 nw.js 控制台 window 中收到以下错误:
{project_dir}\node_modules\serialport\node_modules\bindings\bindings.js:83 Uncaught Error: Module version mismatch. Expected 48, got 46.
我怎样才能运行把这些放在一起?我是否漏掉了一些明显的东西?
请注意,我目前 运行宁:
- Windows 7 x64
- 节点 v4.4.4
- npm v2.4.1
- nw.js v0.15.0
- node-gyp v3.3.1
- 串口 v3.1.2
显然我需要更新到 Current 版本的 Node (v6.2.0) 而不是 LTS 版本 (v4.4.4 ).更新并重建串口后,一切正常!