...
The serialport module version(https://www.npmjs.com/package/serialport) is important. :
BOS versions 9.0.129 and 8.5 and below should use serialport 9.0.0.
Newer BOS versions should use serialport version 11.0.0.
Example
See bs-node-serialport: master for a reference implementation.
...