After upgrade: Clock module getting error: "Can't find variable: moment"
I initially updated MagicMirror2 to V2.1.1 through git pull but then started getting blank screen running serveronly and so I reinstalled entire MagicMirror2 and modules. Started serveronly again and getting blank screen again. When I look in system log file, I’m getting the error:
Message: console message: http://localhost:8080/modules/default/clock//clock.js @49: ReferenceError: Can’t find variable: moment
Message: console message: http://localhost:8080/modules/default/clock//clock.js @77: ReferenceError: Can’t find variable: moment
Did I miss installing a dependency?
I’m running MagicMirror on Pi Zero, Raspian Jessie
@tkotz8621 you have to run npm install in the MagicMirror directory, which will itself call npm install in the vendor directory for moment.js
Thanks for the quick response strawberry 3.141. I thought I ran ‘npm install’ but I ran it as you suggested and now clock is working. Thanks again.