• 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.

nodejs Warnings on recent Stretch-Buster update

Scheduled Pinned Locked Moved Solved Troubleshooting
6 Posts 4 Posters 3.0k 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.
  • Q Offline
    qu1que Project Sponsor
    last edited by Jul 9, 2019, 6:33 PM

    Hi all,

    Recently I’ve updated my raspbian stretch to raspbian buster on the Raspberry Pi 3 where I have installed MM (v. 2.8.0). Everything goes well, except for one thing. When I launch the following commands (on a bash script):

    #!/bin/bash
    cd ~/MagicMirror
    npm start

    The mirror starts well, but I get these warnings:

    
    npm WARN npm npm does not support Node.js v10.15.2
    npm WARN npm You should probably upgrade to a newer version of node as we
    npm WARN npm can't make any promises that npm will work with this version.
    npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
    npm WARN npm You can find the latest version at https://nodejs.org/
    

    After MM starts, some modules are not showed, and I think maybe is for that reason.

    How could I solve this?
    Thanks in advance!

    1 Reply Last reply Reply Quote 0
    • Q Offline
      qu1que Project Sponsor
      last edited by Jul 9, 2019, 10:45 PM

      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 Jul 12, 2019, 1:00 AM

        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 Jul 13, 2019, 4:53 PM

          @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 Jul 13, 2019, 4:56 PM Reply Quote 0
          • S Away
            sdetweil @Joern
            last edited by Jul 13, 2019, 4:56 PM

            @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 Jul 13, 2019, 7:01 PM

              @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
              1 / 1
              • First post
                6/6
                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