• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Error on update to MM 2.11.0

Scheduled Pinned Locked Moved Solved Troubleshooting
32 Posts 2 Posters 6.5k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    killing joke @sdetweil
    last edited by killing joke Nov 17, 2021, 9:32 PM Nov 17, 2021, 9:28 PM

    @sdetweil I did the described code

    sudo rm -rf node_modules
    

    and run your script again. The result as followed…

    pi@raspberrypi:~ $ sudo rm -rf node_modules
    pi@raspberrypi:~ $ 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.
    
    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!
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/aws4
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/bowser
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/helmet-csp
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/mocha/node_modules/minimist
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/mocha/node_modules/mkdirp
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/mocha/node_modules/p-limit
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/mocha/node_modules/yargs-parser
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/mocha/node_modules/yargs
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/moment
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/request/node_modules/tough-cookie
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/string.prototype.trimstart
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/string.prototype.trimleft
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/es-abstract
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/string.prototype.trimend
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/string.prototype.trimright
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/request
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/yargs-unparser/node_modules/p-limit
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/yargs-unparser/node_modules/yargs-parser
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/yargs-unparser/node_modules/yargs
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/express-ipfilter
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/grunt-markdownlint
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/helmet
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/mocha
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/simple-git
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/es-abstract/node_modules
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/helmet/node_modules
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/mocha/node_modules
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/request/node_modules
    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/simple-git/node_modules
    npm ERR! code EACCES
    npm ERR! syscall access
    npm ERR! path /home/pi/MagicMirror/node_modules/aws4
    npm ERR! errno -13
    npm ERR! Error: EACCES: permission denied, access '/home/pi/MagicMirror/node_modules/aws4'
    npm ERR!  [Error: EACCES: permission denied, access '/home/pi/MagicMirror/node_modules/aws4'] {
    npm ERR!   errno: -13,
    npm ERR!   code: 'EACCES',
    npm ERR!   syscall: 'access',
    npm ERR!   path: '/home/pi/MagicMirror/node_modules/aws4'
    npm ERR! }
    npm ERR! 
    npm ERR! The operation was rejected by your operating system.
    npm ERR! It is likely you do not have the permissions to access this file as the current user
    npm ERR! 
    npm ERR! If you believe this might be a permissions issue, please double-check the
    npm ERR! permissions of the file and its containing directories, or try running
    npm ERR! the command again as root/Administrator.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /home/pi/.npm/_logs/2021-11-17T21_23_10_794Z-debug.log
    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 1.262s
    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 7.638s
    
    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.311s
    
    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 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 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 53 packages from 62 contributors and audited 54 packages in 9.551s
    
    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 67.606s
    
    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:~ $ 
    
    

    “npm start” gives me the following error code

    pi@raspberrypi:~ $ npm start
    npm ERR! code ENOENT
    npm ERR! syscall open
    npm ERR! path /home/pi/package.json
    npm ERR! errno -2
    npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json'
    npm ERR! enoent This is related to npm not being able to find a file.
    npm ERR! enoent 
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /home/pi/.npm/_logs/2021-11-17T21_27_04_499Z-debug.log
    pi@raspberrypi:~ $ 
    
    

    I don´t have a folder named “.npm” to show the logs. Is it a hidden folder?

    S 2 Replies Last reply Nov 17, 2021, 9:49 PM Reply Quote 0
    • S Offline
      sdetweil @killing joke
      last edited by Nov 17, 2021, 9:49 PM

      @killing-joke you need to be IN the MagicMirror folder to do npm start

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      K 1 Reply Last reply Nov 18, 2021, 3:54 PM Reply Quote 0
      • S Offline
        sdetweil @killing joke
        last edited by Nov 17, 2021, 11:40 PM

        @killing-joke but u missed a step right at the beginning

        cd ~/MagicMirror
        

        so u didn’t erase the bad folder which is causing all the problems

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • K Offline
          killing joke @sdetweil
          last edited by killing joke Nov 18, 2021, 4:03 PM Nov 18, 2021, 3:54 PM

          @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!!!

          S 2 Replies Last reply Nov 18, 2021, 4:06 PM Reply Quote 0
          • S Offline
            sdetweil @killing joke
            last edited by Nov 18, 2021, 4:06 PM

            @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
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @killing joke
              last edited by Nov 18, 2021, 4:08 PM

              @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
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              S 1 Reply Last reply Nov 18, 2021, 9:37 PM Reply Quote 0
              • S Offline
                sdetweil @sdetweil
                last edited by sdetweil Nov 19, 2021, 2:28 PM Nov 18, 2021, 9:37 PM

                @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!!

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                K 1 Reply Last reply Nov 19, 2021, 6:58 PM Reply Quote 0
                • K Offline
                  killing joke @sdetweil
                  last edited by Nov 19, 2021, 6:58 PM

                  @sdetweil glad to help ;-)

                  1 Reply Last reply Reply Quote 0
                  • 1
                  • 2
                  • 3
                  • 4
                  • 3 / 4
                  3 / 4
                  • First post
                    29/32
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Sam, technical setup by Karsten.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy