SOLVED MM Update - GIT error
Rename your MagicMirror folder to MM-BAK
then git clone MagicMirror for a fresh install
Then move your modules folder, config.js, and custom.css files over to the fresh install
might also need to move the package.json and package-lock.json files from the bak to the fresh install
And, anytime I have dealt with anything like this, I always have to rebuild, or reboot, or both
Maybe this was the issue.
Yeah, it’s possible if the update was retrieved during that time.
so i did it. After that i try to make the npm install. Suprise… the next issues. What a hard MM update! Maybe you have any idea ?
git pull && npm install Bereits aktuell. (node:1893) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead. npm ERR! Error: Method Not Allowed npm ERR! at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10) npm ERR! at /usr/share/npm/lib/cache/add-named.js:203:12 npm ERR! at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7) npm ERR! at FSReqWrap.oncomplete (fs.js:135:15) npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! <http://github.com/npm/npm/issues> npm ERR! System Linux 4.14.71-v7+ npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" npm ERR! cwd /home/pi/MagicMirror npm ERR! node -v v8.11.1 npm ERR! npm -v 1.4.21 npm ERR! code E405 npm WARN deprecated email@example.com: Package no longer supported. Contact firstname.lastname@example.org for more info. | > email@example.com install /home/pi/MagicMirror/node_modules/jshint/node_modules/phantomjs-prebuilt > node install.js PhantomJS not found on PATH Unexpected platform or architecture: linux/arm It seems there is no binary available for your platform/architecture Try to install PhantomJS globally npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian > firstname.lastname@example.org install /home/pi/MagicMirror/node_modules/spectron/node_modules/electron-chromedriver > node ./download-chromedriver.js npm WARN optional dep failed, continuing email@example.com npm WARN deprecated firstname.lastname@example.org: CircularJSON is in maintenance only, flatted is its successor. npm WARN deprecated email@example.com: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/pi/MagicMirror/npm-debug.log npm ERR! not ok code 0
I literally just installed a fresh MagicMirror to an Ubuntu OS, and had zero issues.
I did a manual install of Browserlist…
npm install Browserlist@3.0 -g
then I also did a manual install of PhantomJS…
sudo npm insall PhantomJS@latest -g
Then I made sure I had updated versions of npm, node, and electron
npm install npm@latest -g
npm install node@ latest -g
sudo npm electron@latest -g
I’m not using pi, so I don’t really know if this will help or not… could be different
hmm… it looks like my system is broken. npm makes a lot of problems too.
I decide to reset the systems completely. Fresh OS and a new MM installation. It was easier as to find the root cause. Now everythink is running up again.
Thanks a lot for your ideas and your help