Read the statement by Michael Teeuw here.
Cannot find module "moment"
-
@uok825 said in Cannot find module "moment":
/home/pi/MagicMirror/node_modules/request/lib/auth.js
looks like a library under request
cd ~/MagicMirror npm install uuid
-
request and any lib that used request was removed in 2.16 as there was a security problem never to be fixed… so module was deprecated (set end of life)
MagicMirror removed
-
but the internet is working!!
-
@sdetweil Yeah. I also solved the other Raspberry and I know how to solve it here. We would try less if I don’t realize later. I’m sorry to have been ranting. I’m currently installing Uuid if the problem I will write again. Thanks for your labor Sam.
-
@uok825 to shorten the path
pm2 stop all
then do
npm start
in the MagicMirror folder
alt-spacebar, n to minimize MM
then ctrl-c to stoponce good, then pm2 status to get the number and
pm2 start 0 or whatever number -
@sdetweil I am connected with SSH. I always did pm2 stop 0, pm2 flush, do my work and pm2 start 0. But PI0 is so slow still doing npm :D
-
@uok825 but don’t need to do pm2 start until its working correctly
why do you post screen shots if connected via ssh?/ just copy the text…
-
@uok825 pm2 calls npm same thing…
-
@sdetweil Screenshot is a habit for me to take. easier than copying
-
@uok825 screen shots harder to read here, very tiny… impossible on phone