I installed yarn, copied repo to my device (RPi) and ran sudo yarn install, which seemed to run successfully. When I then ran yarn start inside the project directory, I got the following errors:
pi@homebridge-pi:~/itag-mqtt-bridge-master $ yarn start
yarn run v1.7.0
$ node index.js
internal/modules/cjs/loader.js:550
throw err;
^
Error: Cannot find module '/home/pi/itag-mqtt-bridge-master/index.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:548:15)
at Function.Module._load (internal/modules/cjs/loader.js:475:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)
at startup (internal/bootstrap/node.js:201:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:516:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I checked package.json and it has the correct main line, so not sure why its trying to load index.js in the project directory and not out of src.
EDIT 2: I've found quite a few posts from people trying to use the builit-in BT radio on the RPi and also using Wifi. This seems to be a problem where the turning off the wifi fixes the issue. In my case I'm using RPi zero W (no ethernet) so am using wifi.
I installed yarn, copied repo to my device (RPi) and ran
sudo yarn install, which seemed to run successfully. When I then ranyarn startinside the project directory, I got the following errors:I checked
package.jsonand it has the correctmainline, so not sure why its trying to loadindex.jsin the project directory and not out ofsrc.EDIT 2: I've found quite a few posts from people trying to use the builit-in BT radio on the RPi and also using Wifi. This seems to be a problem where the turning off the wifi fixes the issue. In my case I'm using RPi zero W (no ethernet) so am using wifi.