Pexeus / LTE-Car

42 stars 12 forks source link

Cannot find module 'pigpio' #3

Closed pinige closed 1 year ago

pinige commented 1 year ago

pi@raspberrypi:~/LTE-Car/onboard $ node index.js internal/modules/cjs/loader.js:934 throw err; ^

Error: Cannot find module 'pigpio' Require stack:

Pexeus commented 1 year ago

Npm i pigpio

pinige commented 1 year ago

Many thanks for your quick response. I am now getting the following error:

pi@raspberrypi:~/LTE-Car/onboard $ sudo node index.js Initiating stream Initiating controls Initiating telemetry [Streamer Error]: 2023/05/11 21:50:33 socat[1357] E exactly 2 addresses required (there are 4); use option "-h" for help

[Streamer] Process ended: 1 internal/validators.js:216 throw new ERR_SOCKET_BAD_PORT(name, port, allowZero); ^

RangeError [ERR_SOCKET_BAD_PORT]: Port should be > 0 and < 65536. Received [udp port]. at new NodeError (internal/errors.js:322:7) at validatePort (internal/validators.js:216:11) at Socket.send (dgram.js:629:12) at dispatch (/home/pi/LTE-Car/onboard/src/ucon.js:155:16) at Timeout._onTimeout (/home/pi/LTE-Car/onboard/src/ucon.js:164:13) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7) { code: 'ERR_SOCKET_BAD_PORT' } pi@raspberrypi:~/LTE-Car/onboard $

Any help would be very much appreciated - thank you.

Pexeus commented 1 year ago

Check the data/config.json file

pinige commented 1 year ago

Okay – I will look into it ! Thank you so much for your help – this project of yours is awesome !

Kind regards Nigel

From: Pexeus @.> Sent: 11 May 2023 22:05 To: Pexeus/LTE-Car @.> Cc: pinige @.>; Author @.> Subject: Re: [Pexeus/LTE-Car] Cannot find module 'pigpio' (Issue #3)

Check the data/config.json file

— Reply to this email directly, view it on GitHubhttps://github.com/Pexeus/LTE-Car/issues/3#issuecomment-1544678819, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A5ALY2HWNIKYJQCSEIZ3BJTXFVH6NANCNFSM6AAAAAAX6L7LHA. You are receiving this because you authored the thread.Message ID: @.**@.>>