Read the statement by Michael Teeuw here.
Error on update to MM 2.11.0
-
@sdetweil said in Error on update to MM 2.11.0:
@killing-joke you need to be IN the MagicMirror folder to do npm start
Oh my gosh, same mistake twice a week? Shame on me!!!
Did as described before (but IN the correct folder now) :beaming_face_with_smiling_eyes:
pi@raspberrypi:~ $ cd ~/MagicMirror pi@raspberrypi:~/MagicMirror $ sudo rm -rf node_modulespi@raspberrypi:~/MagicMirror $ bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force No LSB modules are available. doing test run = false update log will be in /home/pi/MagicMirror/installers/upgrade.log Check current Node installation ... Node currently installed. Checking version number. Minimum Node version: v14.0.0 Installed Node version: v14.18.1 No Node.js upgrade necessary. Check current NPM installation ... NPM currently installed. Checking version number. Minimum npm version: V6.0.0 Installed npm version: V6.14.15 No npm upgrade necessary. (23) Failed writing body upgrading from version 2.17.1 to 2.17.1 fetching latest revisions updating MagicMirror runtime, please wait npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it! > core-js@3.15.2 postinstall /home/pi/MagicMirror/node_modules/core-js > node -e "try{require('./postinstall')}catch(e){}" Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: > https://opencollective.com/core-js > https://www.patreon.com/zloirock Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) > electron@13.5.1 postinstall /home/pi/MagicMirror/node_modules/electron > node install.js > magicmirror@2.17.1 install /home/pi/MagicMirror > echo "Installing vendor files ... " && cd vendor && npm install --loglevel=error Installing vendor files ... audited 9 packages in 1.163s found 0 vulnerabilities > magicmirror@2.17.1 postinstall /home/pi/MagicMirror > npm run install-fonts && echo "MagicMirror installation finished successfully! " > magicmirror@2.17.1 install-fonts /home/pi/MagicMirror > echo "Installing fonts ... " && cd fonts && npm install --loglevel=error Installing fonts ... audited 1 package in 1.367s found 0 vulnerabilities MagicMirror installation finished successfully! added 294 packages from 243 contributors and audited 918 packages in 94.737s 20 packages are looking for funding run `npm fund` for details found 0 vulnerabilities Checking for modules with removed libraries processing dependency changes for active modules with package.json files processing for module MMM-Carousel please wait ---------------------------------- npm notice created a lockfile as package-lock.json. You should commit this file. up to date in 0.782s found 0 vulnerabilities processing complete for module MMM-Carousel processing for module MMM-DWD-WarnWeather please wait ---------------------------------- npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm notice created a lockfile as package-lock.json. You should commit this file. added 47 packages from 58 contributors and audited 47 packages in 9.188s 2 packages are looking for funding run `npm fund` for details found 0 vulnerabilities processing complete for module MMM-DWD-WarnWeather processing for module MMM-SunRiseSet please wait ---------------------------------- npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm notice created a lockfile as package-lock.json. You should commit this file. added 47 packages from 58 contributors and audited 47 packages in 6.346s 2 packages are looking for funding run `npm fund` for details found 0 vulnerabilities processing complete for module MMM-SunRiseSet processing for module MMM-AVStock please wait ---------------------------------- npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 npm notice created a lockfile as package-lock.json. You should commit this file. added 53 packages from 62 contributors and audited 54 packages in 9.937s 2 packages are looking for funding run `npm fund` for details found 0 vulnerabilities processing complete for module MMM-AVStock processing for module MMM-Fuel please wait ---------------------------------- npm WARN deprecated @stylelint/postcss-markdown@0.36.2: Use the original unforked package instead: postcss-markdown npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates. npm notice created a lockfile as package-lock.json. You should commit this file. added 464 packages from 298 contributors and audited 464 packages in 72.299s 101 packages are looking for funding run `npm fund` for details found 6 moderate severity vulnerabilities run `npm audit fix` to fix them, or `npm audit` for details processing complete for module MMM-Fuel pi@raspberrypi:~/MagicMirror $
npm start works fine, but two more questions:
- What should I do with the 6 moderate severity vulnerabilities? (last block of the code)
- how should I update my MM or the modules in future?
Thank you very much for your help / support!!!
-
@killing-joke said in Error on update to MM 2.11.0:
What should I do with the 6 moderate severity vulnerabilities? (last block of the code)
nothing you can do… not our code
how should I update my MM or the modules in future?
MM run my upgarde script
modules, u have to go to each module folder that NEEDS update and do
git pull
IF the module has a package.json file then also do , IN the module folder,
rm -rf node_modules npm install
-
@killing-joke said in Error on update to MM 2.11.0:
/home/pi/MagicMirror/installers/upgrade.log
can u send the log file to me via email, same userid at gmail…
I want to look at the one error reported
(23) Failed writing body
-
@sdetweil thanks… the error reported was related to timing of part of the script… nothing damaged, and I never knew this error could occur… so fun times!!
-
@sdetweil glad to help ;-)