Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serialport モジュールのbindingsのバイナリーモジュールのバージョン違い #32

Open
hashisan-atBridge opened this issue Aug 9, 2020 · 2 comments
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request
Milestone

Comments

@hashisan-atBridge
Copy link
Contributor

シリアル通信を利用するNodeで使用しているserialportのバイナリーモジュール
node_modules/serialport/node_modules/@serialport/bindings/build/Release/bindings.node
が、

  • serialportバージョン9.0.0(最新) ==> Node12用にコンパイル
  • serialportバージョン8.0.0 ==> Node10用にコンパイル

となっており、それぞれ逆の状態では、起動時に

was compiled against a different Node.js version using
NODE_MODULE_VERSION 72. This version of Node.js requires
NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).

とエラーになる。
Node.jsのバージョンにより、package.jsonのdependenciesのエントリを変える必要がある。

@ryoichi-obara
Copy link
Member

@hashisan-atBridge 先日の会合でバージョン類は下記に決まった認識ですので、本件クローズして問題ないでしょうか?

  • Node.js 10.x
  • Node-RED 1.1.3
  • serialport: ^9.0.0

@hashisan-atBridge
Copy link
Contributor Author

Node12(LTS)での動作は必要かと思いますので、オープンのままにしておいてください。

@ryoichi-obara ryoichi-obara added enhancement New feature or request dependencies Pull requests that update a dependency file labels Sep 29, 2020
@ryoichi-obara ryoichi-obara added this to the Future milestone Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants