MMM-awesome-alexa icon indicating copy to clipboard operation
MMM-awesome-alexa copied to clipboard

Error after NPM INSTALL

Open haymaan opened this issue 5 years ago • 11 comments

If you know how to fix the issue, make a pull request instead.

  • [ ] Before submitting your issue add logs from your MagicMirror by running command pm2 log MagicMirror after fresh install of magic mirror on pi 3b trying to get awesome Alexa ,but at the (npm install ) i get this error " /MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy $ npm install

[email protected] install /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download [snowboy] Success: "/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node" already installed Pass --update-binary to reinstall or --build-from-source to recompile npm WARN prepublish-on-install As of npm@5, prepublish scripts are deprecated. npm WARN prepublish-on-install Use prepare for build steps and prepublishOnly for upload-only. npm WARN prepublish-on-install See the deprecation note in npm help scripts for more information.

[email protected] prepublish /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy tsc --listFiles

../../../../node_modules/@types/unist/index.d.ts:31:20 - error TS2304: Cannot find name 'unknown'.

31 [key: string]: unknown; ~~~~~~~

../../../../node_modules/@types/unist/index.d.ts:40:20 - error TS2304: Cannot find name 'unknown'.

40 [key: string]: unknown; ~~~~~~~

../../../../node_modules/@types/unist/index.d.ts:97:12 - error TS2304: Cannot find name 'unknown'.

97 value: unknown; ~~~~~~~

../../../../node_modules/@types/vfile-message/index.d.ts:69:24 - error TS2304: Cannot find name 'unknown'.

69 [key: string]: unknown; ~~~~~~~

../../../../node_modules/@types/vfile/index.d.ts:48:15 - error TS2304: Cannot find name 'unknown'.

48 data: unknown; ~~~~~~~

/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/node_modules/typescript/lib/lib.es6.d.ts /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/index.ts /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/node-pre-gyp.d.ts /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/SnowboyDetectNative.d.ts /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/node_modules/@types/node/base.d.ts /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/node_modules/@types/node/index.d.ts /home/pi/MagicMirror/node_modules/@types/events/index.d.ts /home/pi/MagicMirror/node_modules/@types/minimatch/index.d.ts /home/pi/MagicMirror/node_modules/@types/glob/index.d.ts /home/pi/MagicMirror/node_modules/@types/unist/index.d.ts /home/pi/MagicMirror/node_modules/@types/vfile-message/index.d.ts /home/pi/MagicMirror/node_modules/@types/vfile/index.d.ts npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! [email protected] prepublish: tsc --listFiles npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the [email protected] prepublish 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-09-09T21_34_36_165Z-debug.log please any help

haymaan avatar Sep 09 '19 21:09 haymaan

I too faced the same issue. As a pi newbie I'm completely lost!

Did you manage to resolve it?

kelvinator77 avatar Sep 20 '19 21:09 kelvinator77

No still the same problem

haymaan avatar Sep 20 '19 22:09 haymaan

Same here - Mac Pro - 2009 Ubuntu 16.04 Nodes 8 I managed to complete the installation and alex is live and well for a very short time then Just stuck on on

transiting to status : busy

And it not the electron.js problem of crome - checked that. Thinking its this 3 rd time re-configuring the module ,any help will be appreciated. Thanks

npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! [email protected] prepublish: tsc --listFiles npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the [email protected] prepublish script.

FaiekA avatar Sep 28 '19 19:09 FaiekA

Any news ???

Ragde49 avatar Oct 11 '19 03:10 Ragde49

Same here - Mac Pro - 2009 Ubuntu 16.04 Nodes 8 I managed to complete the installation and alex is live and well for a very short time then Just stuck on on

transiting to status : busy

And it not the electron.js problem of crome - checked that. Thinking its this 3 rd time re-configuring the module ,any help will be appreciated. Thanks

npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! [email protected] prepublish: tsc --listFiles npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the [email protected] prepublish script.

how do you complete the installation?

Ragde49 avatar Oct 11 '19 03:10 Ragde49

Hi no news yet ..any assistance will be appreciate

FaiekA avatar Oct 11 '19 07:10 FaiekA

I just continued with the installation process after the error and it work for a while Then hangs Hope someone picks up this thread and offer some help.....

FaiekA avatar Oct 11 '19 07:10 FaiekA

Hi, the same for me. if any solution found I appreciate, too many installations with always the same error. is this in relation with version of Raspian for Rasberry PI ? buster, stretch, jessie ? Erreur.npm.install.txt

jcfpi avatar Oct 11 '19 09:10 jcfpi

I gave up on this module as I don't think it's maintained anymore. I'd recommend trying AlexaPi. I haven't tried it myself yet but it's supposed to work with MagicMirror. https://github.com/alexa-pi/AlexaPi

kelvinator77 avatar Oct 11 '19 10:10 kelvinator77

I install AlexaPi (AMAZON version) on a raspberry PI3 with Strecht, IT WORKS, but I think that interactions with the Magic Mirror screen are not supported. And https://github.com/respeaker/avs is somebody know ?

jcfpi avatar Oct 11 '19 12:10 jcfpi

Try with node -v 10.16.0

sudo npm install -g n sudo n 10.16.0 And then try to install

tanvir586 avatar Nov 29 '19 02:11 tanvir586