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.

    Cannot find module './snowboy/lib/node/index.js'

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    8 Posts 4 Posters 1.4k Views 4 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.
    • A Offline
      AliensExist
      last edited by

      After installing MagicMirror and google assistant, I get this error and the screen is blank. it does not display anything
      Please help. I am doing this for my school project. Thank you.

      magicmirror@2.9.0 start /home/pi/MagicMirror
      sh run-start.sh

      Starting MagicMirror: v2.9.0
      Loading config …
      Loading module helpers …
      No helper found for module: alert.
      Initializing new module helper …
      Module helper loaded: updatenotification
      No helper found for module: clock.
      Initializing new module helper …
      Module helper loaded: calendar
      No helper found for module: compliments.
      No helper found for module: currentweather.
      No helper found for module: weatherforecast.
      Initializing new module helper …
      Module helper loaded: newsfeed
      WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘./snowboy/lib/node/index.js’
      Loading module helpers …
      No helper found for module: alert.
      Initializing new module helper …
      Module helper loaded: updatenotification
      No helper found for module: clock.
      Initializing new module helper …
      Module helper loaded: calendar
      No helper found for module: compliments.
      No helper found for module: currentweather.
      No helper found for module: weatherforecast.
      Initializing new module helper …
      Module helper loaded: newsfeed
      App threw an error during load
      Error: Cannot find module ‘./snowboy/lib/node/index.js’
      at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
      at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
      at Function.Module._load (internal/modules/cjs/loader.js:528:25)
      at Module.require (internal/modules/cjs/loader.js:658:17)
      at require (internal/modules/cjs/helpers.js:20:18)
      at Object. (/home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js:11:18)
      at Object. (/home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js:234:3)
      at Module._compile (internal/modules/cjs/loader.js:711:30)
      at Object.Module._extensions…js (internal/modules/cjs/loader.js:722:10)
      at Module.load (internal/modules/cjs/loader.js:620:32)
      Whoops! There was an uncaught exception…
      { Error: Cannot find module ‘./snowboy/lib/node/index.js’
      at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
      at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
      at Function.Module._load (internal/modules/cjs/loader.js:528:25)
      at Module.require (internal/modules/cjs/loader.js:658:17)
      at require (internal/modules/cjs/helpers.js:20:18)
      at Object. (/home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js:11:18)
      at Object. (/home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js:234:3)
      at Module._compile (internal/modules/cjs/loader.js:711:30)
      at Object.Module._extensions…js (internal/modules/cjs/loader.js:722:10)
      at Module.load (internal/modules/cjs/loader.js:620:32) code: ‘MODULE_NOT_FOUND’ }
      MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      Launching application.
      Shutting down server…
      Stopping module helper: updatenotification
      Stopping module helper: calendar
      Stopping module helper: newsfeed
      Stopping module helper: updatenotification
      Stopping module helper: calendar
      Stopping module helper: newsfeed

      ? 1 Reply Last reply Reply Quote 0
      • M Offline
        mrdenmark
        last edited by

        did you mak a copy of the original config file? if you us that one wnat happens?

        1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User @AliensExist
          last edited by

          @AliensExist
          You probably made a mistake with installing MMM-Hotword. Did you follow the installation instruction on github repository?

          A 1 Reply Last reply Reply Quote 0
          • A Offline
            AliensExist @Guest
            last edited by

            @Sean Yes, I installed the MMM-Hotword properly, without any mistakes. I have had this problem for a week now, so I decided to start fresh and do everything again (installing the MagicMirror and everything), I did everything over again three times, but I still have the same problem.

            ? 1 Reply Last reply Reply Quote 0
            • ? Offline
              A Former User @AliensExist
              last edited by

              @AliensExist
              But the error log says your installation was not completed.
              Check whether the file and folder exist.

              cd ~/MagicMirror/modules/MMM-Hotword
              
              ls ./snowboy/lib/node/index.js
              

              It should return ./snowboy/lib/node/index.js. If not, your installation was failed for some reason.

              A 2 Replies Last reply Reply Quote 0
              • A Offline
                AliensExist @Guest
                last edited by

                @Sean thank you for your replay.
                Yes, you are right. There is problem with he installation. ./snowboy/lib/node/index.js does not shuow up.
                I’ll try installing it again the fourth time. Lets see how it goes. Thank you again
                I’ll update here on how it goes.

                1 Reply Last reply Reply Quote 0
                • A Offline
                  AliensExist @Guest
                  last edited by AliensExist

                  @Sean Ok, so i was able to fix it by re-installing everything again. But now after I run the command ‘npm start’ the mirror starts for 1 sec or 2, and then closes by itself. I am not sure what the problem here is. I tried debugging with ‘npm start dev’ but it crashes after 2 seconds.

                  This is everything after I run the command ‘npm start’ (if it helps)

                  pi@raspberrypi:~/MagicMirror $ npm start

                  magicmirror@2.9.0 start /home/pi/MagicMirror
                  sh run-start.sh

                  Starting MagicMirror: v2.9.0
                  Loading config …
                  Loading module helpers …
                  No helper found for module: alert.
                  Initializing new module helper …
                  Module helper loaded: updatenotification
                  No helper found for module: clock.
                  Initializing new module helper …
                  Module helper loaded: calendar
                  No helper found for module: compliments.
                  No helper found for module: currentweather.
                  No helper found for module: weatherforecast.
                  Initializing new module helper …
                  Module helper loaded: newsfeed
                  Initializing new module helper …
                  Module helper loaded: MMM-Hotword
                  Initializing new module helper …
                  Module helper loaded: MMM-AssistantMk2
                  All module helpers loaded.
                  Starting server on port 8080 …
                  Server started …
                  Connecting socket for: updatenotification
                  Connecting socket for: calendar
                  Starting node helper for: calendar
                  Connecting socket for: newsfeed
                  Starting module: newsfeed
                  Connecting socket for: MMM-Hotword
                  [HOTWORD] MMM-Hotword starts
                  Connecting socket for: MMM-AssistantMk2
                  Sockets connected & modules started …
                  Launching application.
                  Create new calendar fetcher for url: http://www.calendarlabs.com/templates/ical/US-Holidays.ics - Interval: 300000
                  Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
                  [AMK2] Recipe is loaded: hide_and_show_all_modules.js
                  [AMK2] Recipe is loaded: reboot.js
                  [AMK2] Recipe is loaded: screen_onoff.js
                  [AMK2] Recipe is loaded: shutdown.js
                  [AMK2] Temporal storage directory is clearing.
                  [HOTWORD] No model to load
                  [AMK2] assistant ready
                  /home/pi/MagicMirror/node_modules/electron/dist/electron js/electron.js: symbol lookup error: /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v3.0-linux-arm-glibc/grpc_node.node: undefined symbol: __atomic_store_8
                  npm ERR! code ELIFECYCLE
                  npm ERR! syscall spawn
                  npm ERR! file sh
                  npm ERR! errno ENOENT
                  npm ERR! magicmirror@2.9.0 start: sh run-start.sh
                  npm ERR! spawn ENOENT
                  npm ERR!
                  npm ERR! Failed at the magicmirror@2.9.0 start script.
                  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

                  npm ERR! A complete log of this run can be found in:
                  npm ERR! /home/pi/.npm/_logs/2019-11-15T21_50_03_527Z-debug.log

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @AliensExist
                    last edited by

                    @AliensExist see this post for the instructions on how to fix this problem

                    https://forum.magicmirror.builders/topic/11430/error-when-trying-to-run-mmm-assistantmk2/5

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    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