SignalK / signalk-server

An implementation of a Signal K central server for boats.
http://signalk.org
Apache License 2.0
322 stars 156 forks source link

ReadlineParser - SerialPort error #1577

Closed miago closed 1 year ago

miago commented 1 year ago

Can't open and connect to serial port to receiver NMEA 0183 data, I receive the following error:

Jul 12 20:46:40 TypeError: ReadlineParser is not a constructor at SerialStream. (/usr/lib/node_modules/signalk-server/node_modules/@signalk/streams/serialport.js:122:22) at SerialPort.emit (node:events:513:28) at settings.binding.open.then.opening (/usr/lib/node_modules/signalk-server/node_modules/serialport/node_modules/@serialport/stream/dist/index.js:104:18)

running Signal K Server version 2.0.0, node v18.16.1 on Raspberry Pi 3 B+

tkurki commented 1 year ago

Please try to reinstall with

sudo npm install -g signalk-server

the server update has not managed to update serialport successfully for some reason.

miago commented 1 year ago

Thanks, it works now!