Read the statement by Michael Teeuw here.
Please commit your changes or stash them before you merge?
-
jeff@raspberrypi:~/MagicMirror $ rm package-lock.json
jeff@raspberrypi:~/MagicMirror $ git pull && npm run install-mm
Updating 94c3c69…c24de64
error: Your local changes to the following files would be overwritten by merge:
package.json
Please commit your changes or stash them before you merge.
Aborting -
cd ~/MagicMirror git checkout package.json git pull
if that is successful
npm run mm-install
but watch out, then sudo may have messed things uo
-
jeff@raspberrypi:~/MagicMirror $ npm run mm-install
npm ERR! Missing script: “mm-install”
npm ERR!
npm ERR! Did you mean one of these?
npm ERR! npm install # Install a package
npm ERR! npm uninstall # Remove a package
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm runnpm ERR! A complete log of this run can be found in: /home/jeff/.npm/_logs/2025-01-03T16_14_57_938Z-debug-0.log
jeff@raspberrypi:~/MagicMirror $ -
@jefftse nano package.json
version should be 2.30.0"name": "magicmirror", "version": "2.30.0"
-
i’m confused. it is showing “2.30.0”
-
@jefftse and further down
"scripts": { "config:check": "node js/check_config.js", "install-fonts": "echo \"Installing fonts ...\n\" && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier", "install-mm": "npm install --no-audit --no-fund --no-update-notifier --only=prod --omit=dev", "install-mm:dev": "npm install --no-audit --no-fund --no-update-notifier", "install-vendor": "echo \"Installing vendor files ...\n\" && cd vendor && npm install --loglevel=error --no-audit --no-fund --no-update-notifier",
doah… my mistake…
npm run install-mm
-
That’s exactly what I have
-
jeff@raspberrypi:~/MagicMirror $ git checkout package.json
Updated 0 paths from the index -
jeff@raspberrypi:~/MagicMirror $ git pull && npm run install-mm
Already up to date.magicmirror@2.30.0 install-mm
npm install --no-audit --no-fund --no-update-notifier --only=prod --omit=devnpm ERR! code EBADENGINE
npm ERR! engine Unsupported engine
npm ERR! engine Not compatible with your version of node/npm: magicmirror@2.30.0
npm ERR! notsup Not compatible with your version of node/npm: magicmirror@2.30.0
npm ERR! notsup Required: {“node”:“>=20.18.1 <21 || >=22”}
npm ERR! notsup Actual: {“npm”:“10.1.0”,“node”:“v20.9.0”}npm ERR! A complete log of this run can be found in: /home/jeff/.npm/_logs/2025-01-03T16_52_04_066Z-debug-0.log
-
@jefftse ok short path
sudo npm install n -g sudo n 20.18.1 cd ~/MagicMirror npm run install-mm