sgupta999 / mqtt-bridge-smartthings

MQTT Bridge To SmartThings [MBS]
MIT License
27 stars 15 forks source link

Constructor Error from Winston #28

Closed koensayr closed 4 years ago

koensayr commented 4 years ago

Working in MacOS. Really so thrilled to see this still being worked on. On startup, I get the following:

`` plex:mqtt-bridge-smartthings-1.0.4 plex$ echo $CONFIG_DIR /Users/plex/Projects/git/mqtt-bridge-smartthings-1.0.4/config plex:mqtt-bridge-smartthings-1.0.4 plex$ ls -la $CONFIG_DIR total 8 drwxr-xr-x 4 plex staff 128 Apr 22 23:47 . drwxr-xr-x 27 plex staff 864 Apr 22 23:47 .. -rw-r--r-- 1 plex staff 1364 Apr 22 23:42 config.yml drwxr-xr-x 2 plex staff 64 Apr 22 23:47 log plex:mqtt-bridge-smartthings-1.0.4 plex$ ./bin/mqtt-bridge-smartthings Current Working Directory is /Users/plex/Projects/git/mqtt-bridge-smartthings-1.0.4 /Users/plex/Projects/git/mqtt-bridge-smartthings-1.0.4/mbs-server.js:80 eventsLog = new (winston.transports.DailyRotateFile)({ ^

TypeError: winston.transports.DailyRotateFile is not a constructor at Object. (/Users/plex/Projects/git/mqtt-bridge-smartthings-1.0.4/mbs-server.js:80:14) ``

koensayr commented 4 years ago

Bah. Sorry. If I cleanly install the NPM module then I get what I need.