我正在尝试在nw.js中运行node- serialport 。在遵循有关本机模块的 nw.js 文档之后,node-serialport 似乎构建得很好,并且可以在常规节点进程中完美运行。
不幸的是,我在 nw.js 控制台窗口中收到以下错误:
{project_dir}\node_modules\serialport\node_modules\bindings\bindings.js:83 未捕获错误:模块版本不匹配。预期48,得到46。
我怎样才能一起运行这些?我错过了一些明显的东西吗?
请注意,我目前正在运行:
- 视窗 7 x64
- 节点 v4.4.4
- npm v2.4.1
- nw.js v0.15.0
- 节点gyp v3.3.1
- 串口 v3.1.2