Read the statement by Michael Teeuw here.
After 2.8 I'm having tons of issues. What are the steps from square 1 to get this working?
-
Your two suggestions did not work. That is why I followed step 3: cloning MM again and copying node_helper to node_modules.
I ran npm install in node_modules and in the MagicMirror directory.
Now it looks like I got one error further … :flushed_face:
This is what I get now:
> sh run-start.sh Starting MagicMirror: v2.8.0 Loading config ... Loading module helpers ... WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module '../../../js/class.js' Loading module helpers ... App threw an error during load Error: Cannot find module '../../../js/class.js' at Module._resolveFilename (internal/modules/cjs/loader.js:602:15) at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12) at Function.Module._load (internal/modules/cjs/loader.js:528:25) at Module.require (internal/modules/cjs/loader.js:658:17) at require (internal/modules/cjs/helpers.js:20:18) at Object.<anonymous> (/home/pi/MagicMirror/node_modules/node_helper/index.js:8:13) at Object.<anonymous> (/home/pi/MagicMirror/node_modules/node_helper/index.js:127:3) at Module._compile (internal/modules/cjs/loader.js:711:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) at Module.load (internal/modules/cjs/loader.js:620:32) Whoops! There was an uncaught exception... { Error: Cannot find module '../../../js/class.js' at Module._resolveFilename (internal/modules/cjs/loader.js:602:15) at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12) at Function.Module._load (internal/modules/cjs/loader.js:528:25) at Module.require (internal/modules/cjs/loader.js:658:17) at require (internal/modules/cjs/helpers.js:20:18) at Object.<anonymous> (/home/pi/MagicMirror/node_modules/node_helper/index.js:8:13) at Object.<anonymous> (/home/pi/MagicMirror/node_modules/node_helper/index.js:127:3) at Module._compile (internal/modules/cjs/loader.js:711:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) at Module.load (internal/modules/cjs/loader.js:620:32) code: 'MODULE_NOT_FOUND' } MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues Launching application. -
@maxheartrate no. No npm install in the node_modules folder. That messes everything up.
Do
cd ~/MagicMirror rm -rf node_modules cp -R -p ???/node_modules ~/MagicMirrorWhere ??? Is your recently cloned download.
Then in the MagicMirror folder do
npm installIF u had other modules installed, beyond the initial set, then look thru their folders and see if there is a package.json file present. If so, in each such module folder do a
npm installthere
I made a new script to do all this upgrade stuff, but I don’t know what will happen if the git pull is already done.
See my upgrade topic in the troubleshooting section -
Hi @sdetweil, thanks for joining in and for your advise.
I followed your steps just as described. The node_helper was the only module in the newly cloned node_modules folder. I then ran npm install and an npm install in every modules folder with a package.json file.
After that I ran into the missing node_helper error again. Obviously the folder was deleted when I ran the npm install in the MagicMirror folder. Now I copied the node_helper folder from the newly cloned version again and I am back at the error I sent in my previous post. :dizzy_face:
-
Obviously the folder was deleted when I ran the npm install in the MagicMirror folderNo it won’t be deleted.
Let’s start from scratch. U have the extra downloaded copy. Make THAT NAME MagicMirror, and npm install in that folder.
Start mm and we should be running.
Then we will copy over your extra modules, and config file
And work from there -
Alright. Now I have something else but a black screen for the first time in days:
“Magic Mirror - please create a config file”
What do you suggest now?
-
Obviously the folder was deleted when I ran the npm install in the MagicMirror folderNo it won’t be deleted.
Let’s start from scratch. U have the extra downloaded copy. Make THAT NAME MagicMirror, and npm install in that folder.
Start mm and we should be running.
Then we will copy over your extra modules, and config file
And work from there -
@sdetweil
That’s what I did. I have a fresh MagicMirror now. It is running but can’t find the config file (I haven’t copied config.js.sample to config.js yet). -
@maxheartrate you have to do that, copy the config
-
@maxheartrate I really want you to run my updated install script…if I can only find the topic with the link!
See the second post here
https://forum.magicmirror.builders/topic/10859/new-update-upgrade-script-ready-for-testing -
I am now using my original config.js and I am copying the modules one by one, then restarting Magic Mirror and checking if it still works.
I have got some stuff back up and running now. Thank so much up to this point.
-
I just did a reboot to see if MagicMirror survives it. :winking_face:
Since I ran your @sdetweil script in my time of desparation, pm2 now autostarts two instances of MagicMirror. One is MagicMirror and one my original mm.
Where do I edit this again? I forgot how I managed to do the autostart in the first place … sorry.
-
@maxheartrate just do
pm2 stop mm pm2 delete mm
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login