I was just like you a few weeks ago. I didn’t know a thing about this, or coding. A complete noob, as they say. My suggestion, because it helped me, is, don’t do your editing in the terminal. Do it in the graphical user interface (GUI). Navigate your desktop as you would on a PC with Windows or a Mac’s Finder.
Click on File Manager (the folder at the top left of your desktop, usually)
Double click the MagicMirror folder
Double click the config folder
Right click the config.js.sample file - select Copy
Right click again somewhere else in that same window - select Paste
Rename the file to config.js and click the Rename button
The new config.js file that you just pasted is now your working config file for MagicMirror
Double click it and it should open in a text editor.
This is one of the places where you will customize your MM. It’s actually good enough to run your MM, although it will only show some of the modules but you’ll be encouraged by the fact that it is at least working. Every module folder has a ReadMe file that instructs you on what to add to your config.js file to get that module up and running.
I think that’s good for now. If you want to run MM right now to see how your new config.js is working you will have to go back to the terminal. Do this:
Open a new terminal
type cd MagicMirror
then type npm start
Sit back and watch the magic happen. When you calm down after a minute or two of watching your MM actually working and you want to quit MM, press the Option key on your keyboard. Select QUIT from File menu that appears, top left of your screen