我正在尝试在 Electron (原子 shell )中使用蓝牙串行端口 native 模块。我做了以下。

  • 已安装 Electron 预建。
  • npm install electron-prebuilt -gnpm install electron-prebuilt --save-dev
  • 已安装 Electron 重建
  • npm install --save-dev electron-rebuild
  • 已安装蓝牙串行端口
  • npm install bluetooth-serial-port --msvs_version=2013
  • 运行 Electron 重建命令。
  • ./node_modules/.bin/electron-rebuild
    我收到以下错误。



    有人可以帮忙吗?

    最佳答案

    在相同的文件夹级别上安装 Electron 预制件。

    关于node.js - 找不到 Electron 预制的版本号。 -尝试使用 Electron 重建时,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/30113459/

    10-12 12:54
    查看更多