Read the statement by Michael Teeuw here.
pm2 logs mm error
- 
 Hi all, I have an issue with the MM-PIR Sensor. I get alltime this error in pm2 log 
 I have the original from @paviro or the modification,
 and I installed Pir-Sensor @cowboysdude0|mm | > magicmirror@2.1.2 start /home/pi/MagicMirror 
 0|mm | > sh run-start.sh
 0|mm | Starting MagicMirror: v2.1.2
 0|mm | Loading config …
 0|mm | Loading module helpers …
 0|mm | Initializing new module helper …
 0|mm | Module helper loaded: MMM-Remote-Control
 0|mm | Initializing new module helper …
 0|mm | Module helper loaded: DailyXKCD
 0|mm | No helper found for module: alert.
 0|mm | Initializing new module helper …
 0|mm | Module helper loaded: updatenotification
 0|mm | No helper found for module: clock.
 0|mm | No helper found for module: calendar_monthly.
 0|mm | No helper found for module: currentweather.
 0|mm | Initializing new module helper …
 0|mm | Module helper loaded: MMM-WunderGround
 0|mm | No helper found for module: weatherforecast.
 0|mm | Initializing new module helper …
 0|mm | Module helper loaded: MMM-SystemStats
 0|mm | Initializing new module helper …
 0|mm | Module helper loaded: MMM-AlexaPi
 0|mm | No helper found for module: MMM-AlarmClock.
 0|mm | No helper found for module: helloworld.
 0|mm | Initializing new module helper …
 0|mm | Module helper loaded: newsfeed
 0|mm | No helper found for module: MMM-SimpleLogo.
 0|mm | No helper found for module: MMM-Globe.
 0|mm | Initializing new module helper …
 0|mm | Module helper loaded: MMM-Traffic
 0|mm | No helper found for module: MMM-iFrameReload.
 0|mm | Initializing new module helper …
 0|mm | Module helper loaded: MMM-IMDBComingSoon
 0|mm | Initializing new module helper …
 0|mm | Module helper loaded: MMM-PIR-Sensor
 0|mm | All module helpers loaded.
 0|mm | Starting server on port 8080 …
 0|mm | Server started …
 0|mm | Connecting socket for: MMM-Remote-Control
 0|mm | Starting node helper for: MMM-Remote-Control
 0|mm | Connecting socket for: DailyXKCD
 0|mm | Starting node helper: DailyXKCD
 0|mm | Connecting socket for: updatenotification
 0|mm | Connecting socket for: MMM-WunderGround
 0|mm | MMM-WunderGround helper started …
 0|mm | Connecting socket for: MMM-SystemStats
 0|mm | Connecting socket for: MMM-AlexaPi
 0|mm | Starting node helper for: MMM-AlexaPi
 0|mm | Connecting socket for: newsfeed
 0|mm | Starting module: newsfeed
 0|mm | Connecting socket for: MMM-Traffic
 0|mm | MMM-Traffic helper started …
 0|mm | Connecting socket for: MMM-IMDBComingSoon
 0|mm | Starting module helper: MMM-IMDBComingSoon
 0|mm | Connecting socket for: MMM-PIR-Sensor
 0|mm | Sockets connected & modules started …
 0|mm | (node:2320) DeprecationWarning: sys is deprecated. Use util instead.
 0|mm | Launching application.
 0|mm | ERROR! Could not find main module js file.
 0|mm | Notification: GET_COMIC Payload: [object Object]
 0|mm | GET_WUNDERGROUND
 0|mm | Create new news fetcher for url: https://www.nasa.gov/rss/dyn/solar_system.rss - Interval: 300000
 0|mm | Create new news fetcher for url: http://feeds.reuters.com/reuters/scienceNews - Interval: 300000
 0|mm | Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
 0|mm | Create new news fetcher for url: http://feeds.bbci.co.uk/news/rss.xml?edition=uk - Interval: 300000Can anybody help me? Regards Michael 
- 
 The only thing I can tell you is if you installed the one I had it has nothing to do with MagicMirror so you won’t get an error from that… Looks like your error right there: 0|mm | (node:2320) DeprecationWarning: sys is deprecated. Use util instead. 0|mm | Launching application. 0|mm | ERROR! Could not find main module js file.I would remove the PIR sensor module and test again… 
- 
 will do, thanks 
- 
 after removing modules, and reboot 0|mm | (node:1893) DeprecationWarning: sys is deprecated. Use util instead. 
 0|mm | Launching application.
 0|mm | ERROR! Could not find main module js file.
 0|mm | Notification: GET_COMIC Payload: [object Object]
 0|mm | GET_WUNDERGROUND
- 
 @michael24h said in pm2 logs mm error: 0|mm | ERROR! Could not find main module js file. Check this: 


