Read the statement by Michael Teeuw here.
Syntax Errors Stopping MM from Loading...
-
@Oliver_Tooth said in Syntax Errors Stopping MM from Loading...:
/home/pi/MagicMirror/modules/node_modules/form-data/lib/form_data.js:225
filename = path.norm!lize(options.fIlepath).replace(//g, ‘/’);Absolutely nothing had changed in the config or the setup
ok, this looks troublesome…
I think this is starting to indicate a failing SD card… so, make plans…
‘maybe’ we can work around it… maybe
do
cd ~/magicMirror rm -rf node_modules npm install --only=prod
then try to restart…
-
I’ve given this ago, and the error still reports the same. Would a new SD card fix this problem?
-
@Oliver_Tooth I think so…
i looked at the code and its ok
filename = path.normalize(options.filepath).replace(/\\/g, '/');
so, there is some data corruption there
sd cards have only so long a life… the bits are write once… and so they keep getting used and marked used, til the card runs out
-
New card ordered for delivery tomorrow. I’ll copy everything across and see where that takes me. Will it be a straight clone, or will I need to do additional installs?
-
@Oliver_Tooth u may have to start over… depends on what may be damaged… u don’t want to clone card
copy MM folder, then delete each node_modules folder and each package-lock.json filethen npm install starting with MM and each module with package.json file