I am following the official raspberry pi smart mirror tutorial and I have run into an issue. I am supposed to run the following command after installing node.js and then clone the Magic Mirror repository to start the application.
npm run start Once this does successfully run, it asks me to visit this website http://localhost:8080 in my browser. I tried using the exact ip address of the pi but it would still show the message
This site can’t be reached 172.xx.8.74 took too long to respond.
I tried asking chatGPT about the issue as well and it told me to run :
npm start server instead but that didnt work either. I also tried running these commands as well:
npm run start:server npm run start & and some more but it would just end with these outputs:
[2025-08-27 14:31:42.588] [INFO] System information: ### SYSTEM: manufacturer: Raspberry Pi Foundation; model: Raspberry Pi 4 Model B Rev 1.5; virtual: false ### OS: platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.12.25+rpt-rpi-v8 ### VERSIONS: electron: 36.6.0; used node: 22.18.0; installed node: 22.18.0; npm: 10.9.3; pm2: ### OTHER: timeZone: Asia/Dubai; ELECTRON_ENABLE_GPU: undefined [2025-08-27 14:31:44.305] [LOG] Create new calendarfetcher for url: https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics - Interval: 604800000 [2025-08-27 14:31:44.380] [LOG] Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000 [2025-08-27 14:31:44.385] [INFO] updatenotification: Updater Class Loaded! [2025-08-27 14:31:44.386] [INFO] updatenotification: Checking PM2 using... [2025-08-27 14:31:44.387] [INFO] updatenotification: [PM2] You are not using pm2 [2025-08-27 14:31:44.387] [INFO] Checking git for module: MagicMirror [2025-08-27 14:31:49.995] [INFO] Newsfeed-Fetcher: Broadcasting 21 items. [2025-08-27 14:31:50.694] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics And then it wouldnt show this line:
username@SmartMirror:~/MagicMirror $ which is my working directory, so i would end up having to exit using CTRL C to exit. I am not sure if those lines require more time to run completely and I interrupted it or anything. But everytime I try to open the local host in another website it shows me the "this site can't be reached" message. Please help me resolve this issue! This is for a project.
npmuses with asudo netstat -tlnpucommand.