Read the statement by Michael Teeuw here.
Cannot find module "moment"
-
@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
-
@sdetweil Sorry. I dont understand Sam. Can you help a little. What exactly will I write?
-
@uok825 there are two commands
git reset -- package-lock.json
and
git checkout -- package-lock.json
then git status