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

issue with installing MMM-awesome-alexa

Scheduled Pinned Locked Moved Unsolved Troubleshooting
15 Posts 5 Posters 4.8k 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.
  • J Offline
    jmartin1009
    last edited by Feb 25, 2019, 2:10 PM

    Everything was working with Awesome-Alexa until i got to the command:

    $ npm install --only=prod
    

    once i put this in, i got a huge error message, that i dont even know where to start or what to do as this is my first mirror. Here is the output:

    pi@raspberrypi:~/MagicMirror/modules/MMM-awesome-alexa $ npm install --only=prod
    > snowboy@1.2.0 preinstall /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy
    > npm install node-pre-gyp
    
    npm WARN deprecated cryptiles@2.0.5: This version is no longer maintained. Please upgrade to the latest version.
    npm WARN deprecated boom@2.10.1: This version is no longer maintained. Please upgrade to the latest version.
    npm WARN deprecated hoek@2.16.3: This version is no longer maintained. Please upgrade to the latest version.
    npm notice created a lockfile as package-lock.json. You should commit this file.
    + node-pre-gyp@0.6.39
    added 114 packages from 78 contributors and audited 268 packages in 17.795s
    found 8 moderate severity vulnerabilities
      run `npm audit fix` to fix them, or `npm audit` for details
    
    > snowboy@1.2.0 install /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy
    > node-pre-gyp install --fallback-to-build
    
    node-pre-gyp ERR! Tried to download(403): https://snowboy-release-node.s3-us-west-2.amazonaws.com/snowboy/v1.2.0/Release/snowboy-v1.2.0-node-v64-linux-arm.tar.gz 
    node-pre-gyp ERR! Pre-built binaries not found for snowboy@1.2.0 and node@10.15.1 (node-v64 ABI, glibc) (falling back to source compile with node-gyp) 
    node-pre-gyp ERR! Tried to download(undefined): https://snowboy-release-node.s3-us-west-2.amazonaws.com/snowboy/v1.2.0/Release/snowboy-v1.2.0-node-v64-linux-arm.tar.gz 
    node-pre-gyp ERR! Pre-built binaries not found for snowboy@1.2.0 and node@10.15.1 (node-v64 ABI, glibc) (falling back to source compile with node-gyp) 
    make: Entering directory '/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/build'
    make: Entering directory '/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/build'
      CXX(target) Release/obj.target/snowboy/swig/Node/snowboy.o
      CXX(target) Release/obj.target/snowboy/swig/Node/snowboy.o
    In file included from ../../nan/nan.h:192:0,
                     from ../swig/Node/snowboy.cc:1:
    ../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe Nan::ForceSet(v8::Local, v8::Local, v8::Local, v8::PropertyAttribute)’:
    ../../nan/nan_maybe_43_inl.h:112:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
       return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
                   ^~~~~~~~
    In file included from ../../nan/nan.h:192:0,
                     from ../swig/Node/snowboy.cc:1:
    ../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe Nan::ForceSet(v8::Local, v8::Local, v8::Local, v8::PropertyAttribute)’:
    ../../nan/nan_maybe_43_inl.h:112:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
       return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
                   ^~~~~~~~
    In file included from ../swig/Node/snowboy.cc:1:0:
    ../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’:
    ../../nan/nan.h:835:60: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
             v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                                ^
    In file included from ../../nan/nan.h:49:0,
                     from ../swig/Node/snowboy.cc:1:
    /home/pi/.node-gyp/10.15.1/include/node/node.h:177:50: note: declared here
                     NODE_EXTERN v8::Local MakeCallback(
                                                      ^
    /home/pi/.node-gyp/10.15.1/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
         __attribute__((deprecated(message))) declarator
                                              ^~~~~~~~~~
    In file included from ../swig/Node/snowboy.cc:1:0:
    ../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’:
    ../../nan/nan.h:850:62: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
             v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                                  ^
    In file included from ../../nan/nan.h:49:0,
                     from ../swig/Node/snowboy.cc:1:
    /home/pi/.node-gyp/10.15.1/include/node/node.h:170:50: note: declared here
                     NODE_EXTERN v8::Local MakeCallback(
                                                      ^
    /home/pi/.node-gyp/10.15.1/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
         __attribute__((deprecated(message))) declarator
                                              ^~~~~~~~~~
    In file included from ../swig/Node/snowboy.cc:1:0:
    ../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, const char*, int, v8::Local*)’:
    ../../nan/nan.h:865:62: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, const char*, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
             v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                                  ^
    In file included from ../../nan/nan.h:49:0,
                     from ../swig/Node/snowboy.cc:1:
    /home/pi/.node-gyp/10.15.1/include/node/node.h:163:50: note: declared here
                     NODE_EXTERN v8::Local MakeCallback(
                                                      ^
    /home/pi/.node-gyp/10.15.1/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
         __attribute__((deprecated(message))) declarator
                                              ^~~~~~~~~~
    In file included from ../swig/Node/snowboy.cc:1:0:
    ../../nan/nan.h: In member function ‘v8::Local Nan::Callback::Call_(v8::Isolate*, v8::Local, int, v8::Local*) const’:
    ../../nan/nan.h:1479:5: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         ));
         ^
    In file included from ../../nan/nan.h:49:0,
                     from ../swig/Node/snowboy.cc:1:
    /home/pi/.node-gyp/10.15.1/include/node/node.h:177:50: note: declared here
                     NODE_EXTERN v8::Local MakeCallback(
                                                      ^
    /home/pi/.node-gyp/10.15.1/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
         __attribute__((deprecated(message))) declarator
                                              ^~~~~~~~~~
    In file included from ../swig/Node/snowboy.cc:1:0:
    ../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’:
    ../../nan/nan.h:835:60: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
             v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                                ^
    In file included from ../../nan/nan.h:49:0,
                     from ../swig/Node/snowboy.cc:1:
    /home/pi/.node-gyp/10.15.1/include/node/node.h:177:50: note: declared here
                     NODE_EXTERN v8::Local MakeCallback(
                                                      ^
    /home/pi/.node-gyp/10.15.1/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
         __attribute__((deprecated(message))) declarator
                                              ^~~~~~~~~~
    In file included from ../swig/Node/snowboy.cc:1:0:
    ../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’:
    ../../nan/nan.h:850:62: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
             v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                                  ^
    In file included from ../../nan/nan.h:49:0,
                     from ../swig/Node/snowboy.cc:1:
    /home/pi/.node-gyp/10.15.1/include/node/node.h:170:50: note: declared here
                     NODE_EXTERN v8::Local MakeCallback(
                                                      ^
    /home/pi/.node-gyp/10.15.1/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
         __attribute__((deprecated(message))) declarator
                                              ^~~~~~~~~~
    In file included from ../swig/Node/snowboy.cc:1:0:
    ../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, const char*, int, v8::Local*)’:
    ../../nan/nan.h:865:62: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, const char*, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
             v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                                  ^
    In file included from ../../nan/nan.h:49:0,
                     from ../swig/Node/snowboy.cc:1:
    /home/pi/.node-gyp/10.15.1/include/node/node.h:163:50: note: declared here
                     NODE_EXTERN v8::Local MakeCallback(
                                                      ^
    /home/pi/.node-gyp/10.15.1/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
         __attribute__((deprecated(message))) declarator
                                              ^~~~~~~~~~
    In file included from ../swig/Node/snowboy.cc:1:0:
    ../../nan/nan.h: In member function ‘v8::Local Nan::Callback::Call_(v8::Isolate*, v8::Local, int, v8::Local*) const’:
    ../../nan/nan.h:1479:5: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         ));
         ^
    In file included from ../../nan/nan.h:49:0,
                     from ../swig/Node/snowboy.cc:1:
    /home/pi/.node-gyp/10.15.1/include/node/node.h:177:50: note: declared here
                     NODE_EXTERN v8::Local MakeCallback(
                                                      ^
    /home/pi/.node-gyp/10.15.1/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
         __attribute__((deprecated(message))) declarator
                                              ^~~~~~~~~~
    snowboy.target.mk:107: recipe for target 'Release/obj.target/snowboy/swig/Node/snowboy.o' failed
    make: *** [Release/obj.target/snowboy/swig/Node/snowboy.o] Error 1
    make: Leaving directory '/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/build'
    gyp ERR! build error 
    gyp ERR! stack Error: `make` failed with exit code: 2
    gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
    gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
    gyp ERR! System Linux 4.14.79-v7+
    gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node" "--module_name=snowboy" "--module_path=/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm"
    gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy
    gyp ERR! node -v v10.15.1
    gyp ERR! node-gyp -v v3.8.0
    gyp ERR! not ok 
    node-pre-gyp ERR! build error 
    node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node --module_name=snowboy --module_path=/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm' (1)
    node-pre-gyp ERR! stack     at ChildProcess. (/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
    node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
    node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:970:16)
    node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
    node-pre-gyp ERR! System Linux 4.14.79-v7+
    node-pre-gyp ERR! command "/usr/bin/node" "/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
    node-pre-gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy
    node-pre-gyp ERR! node -v v10.15.1
    node-pre-gyp ERR! node-pre-gyp -v v0.6.39
    node-pre-gyp ERR! not ok 
    snowboy.target.mk:107: recipe for target 'Release/obj.target/snowboy/swig/Node/snowboy.o' failed
    make: *** [Release/obj.target/snowboy/swig/Node/snowboy.o] Error 1
    make: Leaving directory '/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/build'
    Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node --module_name=snowboy --module_path=/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm' (1)
    gyp ERR! build error 
    gyp ERR! stack Error: `make` failed with exit code: 2
    gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
    gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
    gyp ERR! System Linux 4.14.79-v7+
    gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node" "--module_name=snowboy" "--module_path=/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm"
    gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy
    gyp ERR! node -v v10.15.1
    gyp ERR! node-gyp -v v3.8.0
    gyp ERR! not ok 
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! snowboy@1.2.0 install: `node-pre-gyp install --fallback-to-build`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the snowboy@1.2.0 install 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-02-25T03_06_52_362Z-debug.log
    

    If ANYONE is able to help it would be GREATLY appreciated. Thank you.
    Also sorry if it is way too long, new here and don’t know how to shorten it.

    J 1 Reply Last reply Feb 25, 2019, 3:52 PM Reply Quote 0
    • J Offline
      j.e.f.f Project Sponsor Module Developer @jmartin1009
      last edited by Feb 25, 2019, 3:52 PM

      @jmartin1009 I don’t have a solution for you, but I think there’s a clue in the multiple deprecation warnings. I’d say the source code was created with an earlier version of npm in mind, and the newer version no longer has the routines that the source code is calling for. You can try downgrading to an earlier version of npm to see if the install works.

      You can also try installing newer versions of cryptiles, boom and hoek, as these are the first warnings that you see. Run the npm audit fix command as it suggests to update those packages, then try the install again. May or may not work, but should at least eliminate one warning and get you closer.

      1 Reply Last reply Reply Quote 0
      • J Offline
        jmartin1009
        last edited by Feb 26, 2019, 11:15 PM

        @j.e.f.f i tried the audit fix, and it told me to run npm install again to fix them, then i just get the big error message again, running me in a complete circle :/

        1 Reply Last reply Reply Quote 0
        • J Offline
          jmartin1009
          last edited by Feb 26, 2019, 11:26 PM

          @sdetweil @yawns do either of you have any ideas? you both seem very knowledgeable and i can’t seem to get this module to install and work right.

          S 1 Reply Last reply Feb 26, 2019, 11:53 PM Reply Quote 0
          • S Offline
            sdetweil @jmartin1009
            last edited by sdetweil Feb 26, 2019, 11:57 PM Feb 26, 2019, 11:53 PM

            @jmartin1009 seems like the wrong version of c++, where the errors are because the wrong headers are being used (less likely) or the compiler doesn’t support the features… (more likely)

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            J 1 Reply Last reply Feb 27, 2019, 1:05 AM Reply Quote 0
            • J Offline
              jmartin1009 @sdetweil
              last edited by Feb 27, 2019, 1:05 AM

              @sdetweil is there anything i can do? Or does that mean that i wont be able to use the MMM-awesome-alexa module altogether? I want Alexa integration and voice control and i had decided to use it because i read good things on here about it but if i have to use another due to it just flat out not working with the Pi or something then I would be open to suggestions for other ones to use. But if possible, it would be preferred to use awesome-alexa as it sounds like a good module. Thanks in advance! You’re always very helpful and i really appreciate it!

              S 1 Reply Last reply Feb 27, 2019, 3:38 AM Reply Quote 0
              • S Offline
                sdetweil @jmartin1009
                last edited by Feb 27, 2019, 3:38 AM

                @jmartin1009 i don’t know, but am trying to recreate your experience

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                J 1 Reply Last reply Feb 27, 2019, 1:02 PM Reply Quote 0
                • J Offline
                  jmartin1009 @sdetweil
                  last edited by Feb 27, 2019, 1:02 PM

                  @sdetweil okay! Let me know if anything happens to yours or if you figure anything out, or I mean even if you find out it doesn’t work haha thanks!

                  S 1 Reply Last reply Feb 27, 2019, 6:32 PM Reply Quote 0
                  • S Offline
                    sdetweil @jmartin1009
                    last edited by Feb 27, 2019, 6:32 PM

                    @jmartin1009 still having problems building snowboy… have a trip out of town til tomorrow night… will have to get back to it then

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    J 1 Reply Last reply Feb 27, 2019, 10:24 PM Reply Quote 0
                    • S Offline
                      sonicgoose
                      last edited by Feb 27, 2019, 9:10 PM

                      I was just about to go home and try installing this module. Glad I looked here first! Not sure I’ll bother now…

                      J 1 Reply Last reply Feb 27, 2019, 10:26 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        5/15
                        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