@tjk031 edit the package.json and change the electron version from ^3.0.13 to ^2.0.4
then erase node_modules
rm -rf node_modules
and then
npm install
again
@tjk031 edit the package.json and change the electron version from ^3.0.13 to ^2.0.4
then erase node_modules
rm -rf node_modules
and then
npm install
again
@bhepler there is an ongoing problem w custom.css being overwritten.
My new upgrade script saves and restores
@MMush that needs to be in the config block
{
module:
position:
config:{
showMessage: false
}
},
i have just created a script for pm2 setup only…
bash -c "$(curl -sL https://www.dropbox.com/s/cy2z7lbkpifcbrk/fixuppm2.sh?dl=0)"
this will remove any current MM definition and create a new one
install pm2 if need be, and set it up for restart on boot…
I also replicated this code in the installer to fix the problems there
all these scripts (raspberry.sh, update-script.sh and fixuppm2.sh) now create log files of their processing
let me know how it goes…
@sdetweil said in new script to install/fix PM2 config for start on boot:
bash -c “$(curl -sL https://www.dropbox.com/s/cy2z7lbkpifcbrk/fixuppm2.sh?dl=0)”
i added a couple fixes in case pm2 was already installed but didn’t work…
@everybodyfloats try my updated installer.
Rename the MagicMirror folder out of the way first
https://forum.magicmirror.builders/topic/10171/anyone-want-to-try-updated-installer
@buzzkc Use my new scripts. Search for fixuppm2
@roooooony
can you do
ls /usr/lib/arm-linux-gnueabihf/libnss3.so -laF
and
ls /lib/arm-linux-gnueabihf/libdbus-1.so.3 -laF
mine are dated aug 22 and Jun 9 (libdbus-1.so.3.19.11) respectively
and a thing to test out
rename the ~/MagicMirror/node_modules/electron folder to some other name
then do
cd ~/MagicMirror
npm install electron@6.0.12
then try to start MagicMirror
@davidkmcw said in Was working fine, now just a blank screen:
Error: Cannot find module 'node_helper
that thing again
do
cd ~/MagicMirror
git checkout modules/node_modules/node_helper/index.js
this was caused by doing an npm install in a folder that did NOT have a package.json file
@dankerthrone said in Black Screen: "cannot find module 'node_helper'":
Cannot find module ‘node_helper’
u did an npm install in a folder that had no package.json file I think
workaround do
cd ~/MagicMiror
git checkout modules/node_modules/node_helper/index.js
I have been fighting some crashes for a while, but using the dev window doesn’t help. it dies when Electron dies…
I found this logger, and it has helped a LOT…
thought others would be interested…
you put the javascript in a file (I used js/logger.js)
and then add the two lines to the index.html file (change the path/name of the logger.js file to match what you do)
the log file will be in ~/.config/Electron/logs
(note the leading dot on config)
@Hellonoonan I am willing to discuss. send me a better description. My email is my user ID here on Gmail.
We can also chat on discord.
@valid8r you only need to update the module… the mm update does NOT update any non-default modules…
go to the module folder
cd~/MagicMirror/modules/MMM-Holidaylights
git pull
if it has a package.json file then in the module folder do
npm install
@bm erase the MagicMirror folder and use my install script from here
https://github.com/sdetweil/MagicMirror_scripts
Node and npm are way downlevel.
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
current node is 10.17 or higher
current npm is 6.x
The automated install script fixes that
@bkrand95 if u comment out a module, you must comment out the braces too,
Not like this
{
// module : "compliments"'
//
},
That leaves an empty entry in the modules array. Thus the problem
You can also disable a module, by adding
disabled: true,
After the module: statement without commenting anything out
@chassain-0 because the copied module is in the default folder, but NOT in the list of default modules
you have to use the folder name in front of the module name
module: "default/newsfeed2",
works for me
@redink can I ask what device u are loading on? Pi 3?
in addition to what @Stoffbeuteluwe posted, I suggest you use my updater script from
https://github.com/sdetweil/MagicMirror_scripts
upgrade-script.sh will do the git pull and npm install, and refresh npm setup for any modules that might need it
it should handle all the work… and give you a trial run of all that…
only applying changes if u request them
give it a try this works on Mac as well
bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)"
no changes are made to the local repo or the working copy
if you WANT to actually apply the changes do
bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" apply
if you have already done the git pull, you will need to use force to get the script update the same version
bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force
there is a log file (upgrade.log) in the MagicMirror/installers folder…