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.

    nodejs Warnings on recent Stretch-Buster update

    Scheduled Pinned Locked Moved Solved Troubleshooting
    6 Posts 4 Posters 3.2k Views 5 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.
    • qu1queQ Offline
      qu1que Project Sponsor
      last edited by

      Finally I’ve found the solution looking at the forum:

      sudo npm install npm@latest -g

      1 Reply Last reply Reply Quote 1
      • G Offline
        gotchabeats
        last edited by

        im having the same problem. So all i have to do is run sudo npm install npm@latest -g

        1 Reply Last reply Reply Quote 0
        • J Offline
          Joern
          last edited by

          @qu1que said in nodejs Warnings on recent Stretch-Buster update:

          sudo npm install npm@latest -g

          Hello, tried also under manuell install process to use:

          pi@raspberrypi:~/MagicMirror $ sudo npm install npm@latest -g
          /usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
          /usr/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js
          + npm@6.10.1
          added 19 packages from 13 contributors, removed 12 packages and updated 32 packages in 61.073s
          

          But still:

          pi@raspberrypi:~/MagicMirror $ npm start
          
          > magicmirror@2.8.0 start /home/pi/MagicMirror
          > sh run-start.sh
          
          run-start.sh: 4: run-start.sh: electron: not found
          npm ERR! file sh
          npm ERR! code ELIFECYCLE
          npm ERR! errno ENOENT
          npm ERR! syscall spawn
          npm ERR! magicmirror@2.8.0 start: `sh run-start.sh`
          npm ERR! spawn ENOENT
          npm ERR! 
          npm ERR! Failed at the magicmirror@2.8.0 start script.
          npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
          npm WARN Local package.json exists, but node_modules missing, did you mean to install?
          
          npm ERR! A complete log of this run can be found in:
          npm ERR!     /home/pi/.npm/_logs/2019-07-13T16_53_04_944Z-debug.log
          
          S 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @Joern
            last edited by

            @Joern from the MagicMirror folder now do again

            npm install 
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • J Offline
              Joern
              last edited by

              @sdetweil said in nodejs Warnings on recent Stretch-Buster update:

              npm install

              Oh that’s looks better & I can start now. Below outcome of installation.
              So what did I do with the line “npm@latest -g” before. Did I define for nom to use older version, that was appliedduring current run of “npm install”?

              pi@raspberrypi:~/MagicMirror $ npm install
              npm WARN deprecated time-grunt@2.0.0: Deprecated because Grunt is practically unmaintained. Move on to something better. This package will continue to work with Grunt v1, but it will not receive any updates.
              
              > electron-chromedriver@1.8.0 install /home/pi/MagicMirror/node_modules/electron-chromedriver
              > node ./download-chromedriver.js
              
              successfully dowloaded and extracted!
              
              > core-js@2.6.9 postinstall /home/pi/MagicMirror/node_modules/core-js
              > node scripts/postinstall || echo "ignore"
              
              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@3.1.10 postinstall /home/pi/MagicMirror/node_modules/electron
              > node install.js
              
              Downloading tmp-2201-1-SHASUMS256.txt-3.1.10
              [============================================>] 100.0% of 4.79 kB (4.79 kB/s)
              
              > magicmirror@2.8.0 install /home/pi/MagicMirror
              > cd vendor && npm install
              
              npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
              npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
              
              added 82 packages from 57 contributors and audited 220 packages in 30.154s
              found 5 vulnerabilities (4 low, 1 high)
                run `npm audit fix` to fix them, or `npm audit` for details
              
              > magicmirror@2.8.0 postinstall /home/pi/MagicMirror
              > sh installers/postinstall/postinstall.sh && npm run install-fonts
              
              MagicMirror installation successful!
              
              > magicmirror@2.8.0 install-fonts /home/pi/MagicMirror
              > cd fonts && npm install
              
              added 1 package from 1 contributor and audited 1 package in 7.521s
              found 0 vulnerabilities
              
              added 1008 packages from 1328 contributors and audited 3572 packages in 299.519s
              found 0 vulnerabilities
              
              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                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