Read the statement by Michael Teeuw here.
Version 2.31.0 Error With Upgrade Scripts
-
I used the upgrade script to update my MagicMirror to 2.31.0 from 2.30.0. It ran into an error and now MagicMirror won’t start.
The upgrade log file shows
Ver 2.30.0 and Ext3 modules loaded, install fix
- _fix_clipping
master
updating MagicMirror runtime, please wait
npm error code EACCES
npm error syscall rename
npm error path /home/twist/MagicMirror/node_modules/.ast-types-VPJXcxdi/node_modules/tslib/CopyrightNotice.txt
and it continues with npm error.
Any ideas how to fix this?
- _fix_clipping
-
@atwist eaccess denied sounds like you might have run
one of the npm commands w sudo. (never do that)so to fix this you have to do it again to clean up
cd ~/MagicMirror sudo rm -rf node_modules cd fonts sudo rm - rf node_modules cd ../vendor sudo rm -rf node_modules
then run the upgrade script again with
force
instead of
apply
at the end
-
@atwist can you tell me what you did?
note that upgrade is a 2 step process
test
doshow me the output of ~/MagicMirror/installers/upgrade.log
-
@atwist eaccess denied sounds like you might have run
one of the npm commands w sudo. (never do that)so to fix this you have to do it again to clean up
cd ~/MagicMirror sudo rm -rf node_modules cd fonts sudo rm - rf node_modules cd ../vendor sudo rm -rf node_modules
then run the upgrade script again with
force
instead of
apply
at the end
-
I didn’t think i ran it with sudo but apparently i did. Thank you for your help!!
I did try the test first and it didn’t show errors. But, you got it working!
-
@atwist awesome!
-