Read the statement by Michael Teeuw here.
Problems with Config.js on Pi4 BlackScreen
-
Could this be the problem? Never been any issues with the pi 3 on Rasbian, and thank you sir offering to help much appreciated
npm ERR! path /home/pi/package.json npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall open npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2019-07-13T16_51_46_205Z-debug.log -
@dazza120 must be in the MagicMirror folder for npm start
-
@sdetweil hi im getting the dev window then into console bet there is nothing at all in there just > So what do i have to run in the dev window is it cd MagicMirrior then pm2 start MagicMirrior? im lost just work dam you mirror lol
-
@dazza120 pm2 runs the DEFINITION named x. It doesn’t care about folder.
The setup typically uses the pm2_MagicMirror.json file in installers, or the mm.sh there as well.
mm.sh has a bug, it uses ~ to mark ‘current user’, but when start on boot, the user is root, not pi. So the startup fails. My new installer fixes that.
So, edit mm.sh and change the path to
/home/pi/MagicMirror -
@sdetweil its in that path already but it is completely empty. should it contain text?
-
@dazza120 sorry, what is “it’s”?
-
-
-
@sdetweil i unhide my files and one is in the location i said with no text and the other is in installer as you said with text
-
@dazza120 remove the one in MagicMirror… useless
Fix the one in installers
-
@sdetweil ok done, what to do now. ive just copied the installer one and overwrite the magic mirror path one
-
-
@sdetweil no i mearly placed it in the magicmirror folder path. its set to Cd /MagicMirror folder already and pm2 -help isnt displaying a list of pm2 commands
-
@dazza120 inside needs to be
cd /home/pi/MagicMirror DISPLAY=:0 npm start -
@sdetweil changed it what now mate
-
@dazza120 did u try pm2 now?
-
@sdetweil pm2 start or the dev thing?
-
Let’s get npm start dev working
-
@sdetweil still nothing in the dev console mate, i can start the whole build over again but everytime i go to change the config it doesnt work
-
@dazza120 ok, start again… change the config?
So, you install a module. If it has package.json file you run npm install in the module folder
Then edit config.js and add
Module structure.{ module:'somename', config: { } },To the modules array.
If think syntax error, from the MagicMirror folder do,
npm run config:check
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