Bugsounet Coding

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    Solved Error after update

    Issues
    2
    3
    161
    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.
    • S
      Sheepiely last edited by

      Hi, I’ve updated MMM-GoogleAssistant and now my MM is not running with a black screen. Are you able to help? The log is below.

      pi@raspberrypi:~/MagicMirror/modules/MMM-Detector $ cd ~/MagicMirror/modules/MMM-GoogleAssistant
      pi@raspberrypi:~/MagicMirror/modules/MMM-GoogleAssistant $ npm run update
      
      > MMM-GoogleAssistant@3.0.5 update
      > installer/update.sh
      
      Welcome to GA updater !
      
      Updating...
      HEAD is now at d22e410 minify code on installing
      Already up to date.
      Deleting ALL @bugsounet libraries...
      Ready for Installing...
      npm WARN old lockfile 
      npm WARN old lockfile The package-lock.json file was created with an old version of npm,
      npm WARN old lockfile so supplemental metadata must be fetched from the registry.
      npm WARN old lockfile 
      npm WARN old lockfile This is a one-time fix-up, please be patient...
      npm WARN old lockfile 
      npm ERR! code 1
      npm ERR! path /home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/usb
      npm ERR! command failed
      npm ERR! command sh -c prebuild-install --runtime napi --target 4 --verbose || node-gyp rebuild
      npm ERR! make: Entering directory '/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/usb/build'
      npm ERR!   CC(target) Release/obj.target/libusb/libusb/libusb/core.o
      npm ERR!   CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o
      npm ERR!   CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o
      npm ERR!   CC(target) Release/obj.target/libusb/libusb/libusb/io.o
      npm ERR!   CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o
      npm ERR!   CC(target) Release/obj.target/libusb/libusb/libusb/sync.o
      npm ERR!   CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o
      npm ERR!   CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o
      npm ERR!   CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o
      npm ERR!   CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o
      npm ERR! make: Leaving directory '/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/usb/build'
      npm ERR! prebuild-install info begin Prebuild-install version 5.3.6
      npm ERR! prebuild-install info install installing standalone, skipping download.
      npm ERR! gyp info it worked if it ends with ok
      npm ERR! gyp info using node-gyp@6.1.0
      npm ERR! gyp info using node@14.17.5 | linux | arm
      npm ERR! gyp info find Python using Python version 3.7.3 found at "/usr/bin/python3"
      npm ERR! gyp info spawn /usr/bin/python3
      npm ERR! gyp info spawn args [
      npm ERR! gyp info spawn args   '/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/node-gyp/gyp/gyp_main.py',
      npm ERR! gyp info spawn args   'binding.gyp',
      npm ERR! gyp info spawn args   '-f',
      npm ERR! gyp info spawn args   'make',
      npm ERR! gyp info spawn args   '-I',
      npm ERR! gyp info spawn args   '/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/usb/build/config.gypi',
      npm ERR! gyp info spawn args   '-I',
      npm ERR! gyp info spawn args   '/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/node-gyp/addon.gypi',
      npm ERR! gyp info spawn args   '-I',
      npm ERR! gyp info spawn args   '/home/pi/.cache/node-gyp/14.17.5/include/node/common.gypi',
      npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
      npm ERR! gyp info spawn args   '-Dvisibility=default',
      npm ERR! gyp info spawn args   '-Dnode_root_dir=/home/pi/.cache/node-gyp/14.17.5',
      npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/node-gyp',
      npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/pi/.cache/node-gyp/14.17.5/<(target_arch)/node.lib',
      npm ERR! gyp info spawn args   '-Dmodule_root_dir=/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/usb',
      npm ERR! gyp info spawn args   '-Dnode_engine=v8',
      npm ERR! gyp info spawn args   '--depth=.',
      npm ERR! gyp info spawn args   '--no-parallel',
      npm ERR! gyp info spawn args   '--generator-output',
      npm ERR! gyp info spawn args   'build',
      npm ERR! gyp info spawn args   '-Goutput_dir=.'
      npm ERR! gyp info spawn args ]
      npm ERR! gyp info spawn make
      npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
      npm ERR! ../libusb/libusb/os/linux_udev.c:40:10: fatal error: libudev.h: No such file or directory
      npm ERR!  #include <libudev.h>
      npm ERR!           ^~~~~~~~~~~
      npm ERR! compilation terminated.
      npm ERR! make: *** [libusb.target.mk:148: Release/obj.target/libusb/libusb/libusb/os/linux_udev.o] Error 1
      npm ERR! gyp ERR! build error 
      npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
      npm ERR! gyp ERR! stack     at ChildProcess.onExit (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/node-gyp/lib/build.js:194:23)
      npm ERR! gyp ERR! stack     at ChildProcess.emit (events.js:400:28)
      npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
      npm ERR! gyp ERR! System Linux 5.10.52-v7l+
      npm ERR! gyp ERR! command "/usr/bin/node" "/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/.bin/node-gyp" "rebuild"
      npm ERR! gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/usb
      npm ERR! gyp ERR! node -v v14.17.5
      npm ERR! gyp ERR! node-gyp -v v6.1.0
      npm ERR! gyp ERR! not ok
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/pi/.npm/_logs/2021-09-23T10_02_45_027Z-debug.log
      
      
      1 Reply Last reply Reply Quote 0
      • D
        DJB1966 Helpers last edited by DJB1966

        Try

        cd ~/MagicMirror/modules/MMM-GoogleAssistant
        git checkout master && git pull && npm install
        
        1 Reply Last reply Reply Quote 1
        • S
          Sheepiely last edited by

          All sorted. Thanks @DJB1966

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB | @bugsounet ©2022