Read the statement by Michael Teeuw here.
Cannot find module "moment"
-
@sdetweil said in Cannot find module "moment":
@uok825 yes, and with apply as parm
pi@raspberrypi:~/MagicMirror $ bash upgrade-script.sh apply
No LSB modules are available.
doing test run = false
update log will be in /home/pi/MagicMirror/installers/upgrade.logsaving custom.css
reverting to master branch from develop, saving changed files
saving file package.json as package.json.save before switch back to master branch
restoring file package.json before switch back to master branch
error: you need to resolve your current index first
unable to change back to master branch, stopping execution -
@uok825 said in Cannot find module "moment":
you need to resolve your current index first
looks like some attempt to merge failed
run this in the MagicMirror folder
git diff --name-only --diff-filter=U
-
@sdetweil
pi@raspberrypi:~/MagicMirror $ git diff --name-only --diff-filter=U
package-lock.json
-
@uok825 that’s weird. that file is rebuilt every install
rm package-lock.json
then
git status
and git branchalso, connect via ssh, then everything will be in text so you can just copy/paste
-
@sdetweil rm: ‘package-lock.json’ cant deleted: No such a file or folder.
-
@uok825 ok, still weird
do git checkout master
-
@sdetweil said in Cannot find module "moment":
git checkout master
-
@uok825 ok try these two commands
<file> is package-lock.jsonthis restores the file status in the index
git reset – <file>
then check out a copy from the index
git checkout – <file>
notice that is two dashes
-
@sdetweil I’ll do ’ git reset - package-lock-json ’ right?
-
@uok825 and then git checkout …
and then git status