evancohen / smart-mirror

The fairest of them all. A DIY voice controlled smart mirror with IoT integration.
http://smart-mirror.io
2.79k stars 694 forks source link

I can't get the smart mirror to listen to me #671

Closed gomezdt closed 7 years ago

gomezdt commented 7 years ago

Current Behavior

Hello, I have been trying to get the smart-mirror working for a while now, i have advance a lot but now i can't get the mirror to listen to me.

I have searched other posts but I haven't found the answer so far.

I have the smart mirror running in a Virtual Box VM, using pixel raspbian.

I have the mic and sound working, when i "arecord temp.wav" and then "aplay temp.wav" i listen to what i have recorded.

The error i get is:

pi@raspberrypi:~/smart-mirror $ npm start

smart-mirror@0.0.14 start /home/pi/smart-mirror electron main.js

Remote listening on http://10.0.2.15:8080 ERROR le.js:597 return process.dlopen(module, path._makeLong(filename)); ^

Error: /home/pi/smart-mirror/node_modules/snowboy/lib/node/binding/Release/node-v48-linux-ia32/snowboy.node: undefined symbol: _ZN7snowboy13SnowboyDetectD1Ev at Error (native) at Object.Module._extensions..node (module.js:597:18) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (/home/pi/smart-mirror/node_modules/snowboy/lib/node/index.js:8:29) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10)

I already tried "npm install snowboy" but the error persists.

any ideas on how to solve this?

Thank you

Context

As for context i think i have explained it above, I'm trying to get the smart-mirror working, but i get the error displayed before. The mirror doesn't hear me, as the error is related to snowboy i think that it's preventing it to listen to the hotword

Your Environment

Thanks for any help, I'm stuck at this point

evancohen commented 7 years ago

@gomezdt thanks for filing a new issue, it sounds similar to the other one that you commented on, but has different symptoms. There's not much to go on based on that error, so it's going to be hard to diagnose. What if you run snowboy standalone?

Just a shot in the dark here, but you may have some luck rebuilding snowboy from scratch. Just install dependencies and install/build:

sudo apt-get install libmagic-dev libatlas-base-dev
npm install snowboy --fallback-to-build
gomezdt commented 7 years ago

Hello again, i'm starting with a fresh install of pixel, doing it all over again just to make sure no errors are made.

i'll report all steps and any error i may get along the way in an effort to explain what i'm doing right and wrong.

Thank you

gomezdt commented 7 years ago

1) Installed nodejs 6.x using the instructions from the guide -- no errors encountered

2) Cloned repository using git clone, now its in /home/pi/smart-mirror -- no errors encountered

3) Installed dependencies (sudo apt-get install sox libatlas-base-dev) -- no errors encountered

4) npm install, i got this output:

pi@raspberrypi:~/smart-mirror $ npm install npm WARN deprecated bower@1.8.0: ..psst! While Bower is maintained, we recommend Yarn and Webpack for new front-end projects! Yarn's advantage is security and reliability, and Webpack's is support for both CommonJS and AMD projects. Currently there's no migration path, but please help to create it: https://github.com/bower/bower/issues/2467

snowboy@1.2.0 preinstall /home/pi/smart-mirror/node_modules/.staging/snowboy-ae1258f3 npm install node-pre-gyp

snowboy@1.2.0 /home/pi/smart-mirror/node_modules/.staging/snowboy-ae1258f3 └─┬ node-pre-gyp@0.6.36 ├─┬ mkdirp@0.5.1 │ └── minimist@0.0.8 ├─┬ nopt@4.0.1 │ ├── abbrev@1.1.0 │ └─┬ osenv@0.1.4 │ ├── os-homedir@1.0.2 │ └── os-tmpdir@1.0.2 ├─┬ npmlog@4.1.2 │ ├─┬ are-we-there-yet@1.1.4 │ │ └── delegates@1.0.0 │ ├── console-control-strings@1.1.0 │ ├─┬ gauge@2.7.4 │ │ ├── aproba@1.1.2 │ │ ├── has-unicode@2.0.1 │ │ ├── object-assign@4.1.1 │ │ ├── signal-exit@3.0.2 │ │ ├─┬ string-width@1.0.2 │ │ │ ├── code-point-at@1.1.0 │ │ │ └─┬ is-fullwidth-code-point@1.0.0 │ │ │ └── number-is-nan@1.0.1 │ │ ├─┬ strip-ansi@3.0.1 │ │ │ └── ansi-regex@2.1.1 │ │ └── wide-align@1.1.2 │ └── set-blocking@2.0.0 ├─┬ rc@1.2.1 │ ├── deep-extend@0.4.2 │ ├── ini@1.3.4 │ ├── minimist@1.2.0 │ └── strip-json-comments@2.0.1 ├─┬ request@2.81.0 │ ├── aws-sign2@0.6.0 │ ├── aws4@1.6.0 │ ├── caseless@0.12.0 │ ├─┬ combined-stream@1.0.5 │ │ └── delayed-stream@1.0.0 │ ├── extend@3.0.1 │ ├── forever-agent@0.6.1 │ ├─┬ form-data@2.1.4 │ │ └── asynckit@0.4.0 │ ├─┬ har-validator@4.2.1 │ │ ├─┬ ajv@4.11.8 │ │ │ ├── co@4.6.0 │ │ │ └─┬ json-stable-stringify@1.0.1 │ │ │ └── jsonify@0.0.0 │ │ └── har-schema@1.0.5 │ ├─┬ hawk@3.1.3 │ │ ├── boom@2.10.1 │ │ ├── cryptiles@2.0.5 │ │ ├── hoek@2.16.3 │ │ └── sntp@1.0.9 │ ├─┬ http-signature@1.1.1 │ │ ├── assert-plus@0.2.0 │ │ ├─┬ jsprim@1.4.1 │ │ │ ├── assert-plus@1.0.0 │ │ │ ├── extsprintf@1.3.0 │ │ │ ├── json-schema@0.2.3 │ │ │ └─┬ verror@1.10.0 │ │ │ └── assert-plus@1.0.0 │ │ └─┬ sshpk@1.13.1 │ │ ├── asn1@0.2.3 │ │ ├── assert-plus@1.0.0 │ │ ├── bcrypt-pbkdf@1.0.1 │ │ ├─┬ dashdash@1.14.1 │ │ │ └── assert-plus@1.0.0 │ │ ├── ecc-jsbn@0.1.1 │ │ ├─┬ getpass@0.1.7 │ │ │ └── assert-plus@1.0.0 │ │ ├── jsbn@0.1.1 │ │ └── tweetnacl@0.14.5 │ ├── is-typedarray@1.0.0 │ ├── isstream@0.1.2 │ ├── json-stringify-safe@5.0.1 │ ├─┬ mime-types@2.1.16 │ │ └── mime-db@1.29.0 │ ├── oauth-sign@0.8.2 │ ├── performance-now@0.2.0 │ ├── qs@6.4.0 │ ├── safe-buffer@5.1.1 │ ├── stringstream@0.0.5 │ ├─┬ tough-cookie@2.3.2 │ │ └── punycode@1.4.1 │ ├── tunnel-agent@0.6.0 │ └── uuid@3.1.0 ├─┬ rimraf@2.6.1 │ └─┬ glob@7.1.2 │ ├── fs.realpath@1.0.0 │ ├── inflight@1.0.6 │ ├─┬ minimatch@3.0.4 │ │ └─┬ brace-expansion@1.1.8 │ │ ├── balanced-match@1.0.0 │ │ └── concat-map@0.0.1 │ └── path-is-absolute@1.0.1 ├── semver@5.4.1 ├─┬ tar@2.2.1 │ ├── block-stream@0.0.9 │ ├─┬ fstream@1.0.11 │ │ └── graceful-fs@4.1.11 │ └── inherits@2.0.3 └─┬ tar-pack@3.4.0 ├─┬ debug@2.6.8 │ └── ms@2.0.0 ├── fstream-ignore@1.0.5 ├─┬ once@1.4.0 │ └── wrappy@1.0.2 ├─┬ readable-stream@2.3.3 │ ├── core-util-is@1.0.2 │ ├── isarray@1.0.0 │ ├── process-nextick-args@1.0.7 │ ├── string_decoder@1.0.3 │ └── util-deprecate@1.0.2 └── uid-number@0.0.6

snowboy@1.2.0 install /home/pi/smart-mirror/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-v48-linux-ia32.tar.gz node-pre-gyp ERR! Pre-built binaries not found for snowboy@1.2.0 and node@6.11.2 (node-v48 ABI) (falling back to source compile with node-gyp) make: Entering directory '/home/pi/smart-mirror/node_modules/snowboy/build' CXX(target) Release/obj.target/snowboy/swig/Node/snowboy.o SOLINK_MODULE(target) Release/obj.target/snowboy.node COPY Release/snowboy.node COPY /home/pi/smart-mirror/node_modules/snowboy/lib/node/binding/Release/node-v48-linux-ia32/snowboy.node TOUCH Release/obj.target/action_after_build.stamp make: Leaving directory '/home/pi/smart-mirror/node_modules/snowboy/build'

grpc@1.4.1 install /home/pi/smart-mirror/node_modules/grpc node-pre-gyp install --fallback-to-build --library=static_library

[grpc] Success: "/home/pi/smart-mirror/node_modules/grpc/src/node/extension_binary/grpc_node.node" is installed via remote

electron@1.6.11 postinstall /home/pi/smart-mirror/node_modules/electron node install.js

/home/pi/smart-mirror/node_modules/electron/install.js:47 throw err ^

Error: read ECONNRESET at exports._errnoException (util.js:1020:11) at TLSWrap.onread (net.js:568:26) smart-mirror@0.0.14 /home/pi/smart-mirror ├── angular-i18n@1.6.5 ├── angular-moment@1.0.1 ├── annyang@2.6.0 ├── bower@1.8.0 ├─┬ electron-json-storage@2.0.0 │ ├── async@1.5.2 │ ├── exists-file@1.0.2 │ ├── lodash@4.17.4 │ └── rimraf@2.6.1 ├─┬ eslint@3.19.0 │ ├─┬ babel-code-frame@6.22.0 │ │ └── js-tokens@3.0.2 │ ├─┬ chalk@1.1.3 │ │ ├── ansi-styles@2.2.1 │ │ ├── escape-string-regexp@1.0.5 │ │ ├── has-ansi@2.0.0 │ │ ├── strip-ansi@3.0.1 │ │ └── supports-color@2.0.0 │ ├─┬ concat-stream@1.6.0 │ │ ├── inherits@2.0.3 │ │ ├─┬ readable-stream@2.3.3 │ │ │ ├── core-util-is@1.0.2 │ │ │ ├── isarray@1.0.0 │ │ │ ├── process-nextick-args@1.0.7 │ │ │ ├── string_decoder@1.0.3 │ │ │ └── util-deprecate@1.0.2 │ │ └── typedarray@0.0.6 │ ├─┬ debug@2.6.7 │ │ └── ms@2.0.0 │ ├─┬ doctrine@2.0.0 │ │ └── isarray@1.0.0 │ ├─┬ escope@3.6.0 │ │ ├─┬ es6-map@0.1.5 │ │ │ ├── d@1.0.0 │ │ │ ├── es5-ext@0.10.26 │ │ │ ├── es6-iterator@2.0.1 │ │ │ ├── es6-set@0.1.5 │ │ │ ├── es6-symbol@3.1.1 │ │ │ └── event-emitter@0.3.5 │ │ ├── es6-weak-map@2.0.2 │ │ └── esrecurse@4.2.0 │ ├─┬ espree@3.4.3 │ │ ├── acorn@5.1.1 │ │ └─┬ acorn-jsx@3.0.1 │ │ └── acorn@3.3.0 │ ├── esquery@1.0.0 │ ├── estraverse@4.2.0 │ ├── esutils@2.0.2 │ ├─┬ file-entry-cache@2.0.0 │ │ └─┬ flat-cache@1.2.2 │ │ ├── circular-json@0.3.3 │ │ ├─┬ del@2.2.2 │ │ │ ├─┬ globby@5.0.0 │ │ │ │ └── array-union@1.0.2 │ │ │ ├── is-path-cwd@1.0.0 │ │ │ ├─┬ is-path-in-cwd@1.0.0 │ │ │ │ └── is-path-inside@1.0.0 │ │ │ ├── pify@2.3.0 │ │ │ └─┬ pinkie-promise@2.0.1 │ │ │ └── pinkie@2.0.4 │ │ ├── graceful-fs@4.1.11 │ │ └── write@0.2.1 │ ├─┬ glob@7.1.2 │ │ ├── fs.realpath@1.0.0 │ │ ├─┬ inflight@1.0.6 │ │ │ └── wrappy@1.0.2 │ │ ├─┬ minimatch@3.0.4 │ │ │ └─┬ brace-expansion@1.1.8 │ │ │ ├── balanced-match@1.0.0 │ │ │ └── concat-map@0.0.1 │ │ ├── once@1.4.0 │ │ └── path-is-absolute@1.0.1 │ ├── globals@9.18.0 │ ├── ignore@3.3.3 │ ├── imurmurhash@0.1.4 │ ├─┬ inquirer@0.12.0 │ │ ├── ansi-escapes@1.4.0 │ │ ├── ansi-regex@2.1.1 │ │ ├─┬ cli-cursor@1.0.2 │ │ │ └─┬ restore-cursor@1.0.1 │ │ │ ├── exit-hook@1.1.1 │ │ │ └── onetime@1.1.0 │ │ ├── cli-width@2.1.0 │ │ ├── figures@1.7.0 │ │ ├─┬ readline2@1.0.1 │ │ │ ├── code-point-at@1.1.0 │ │ │ ├─┬ is-fullwidth-code-point@1.0.0 │ │ │ │ └── number-is-nan@1.0.1 │ │ │ └── mute-stream@0.0.5 │ │ ├── run-async@0.1.0 │ │ ├── rx-lite@3.1.2 │ │ ├── string-width@1.0.2 │ │ └── through@2.3.8 │ ├─┬ is-my-json-valid@2.16.0 │ │ ├── generate-function@2.0.0 │ │ ├─┬ generate-object-property@1.2.0 │ │ │ └── is-property@1.0.2 │ │ ├── jsonpointer@4.0.1 │ │ └── xtend@4.0.1 │ ├─┬ is-resolvable@1.0.0 │ │ └── tryit@1.0.3 │ ├─┬ js-yaml@3.9.1 │ │ ├─┬ argparse@1.0.9 │ │ │ └── sprintf-js@1.0.3 │ │ └── esprima@4.0.0 │ ├─┬ json-stable-stringify@1.0.1 │ │ └── jsonify@0.0.0 │ ├─┬ levn@0.3.0 │ │ ├── prelude-ls@1.1.2 │ │ └── type-check@0.3.2 │ ├─┬ mkdirp@0.5.1 │ │ └── minimist@0.0.8 │ ├── natural-compare@1.4.0 │ ├─┬ optionator@0.8.2 │ │ ├── deep-is@0.1.3 │ │ ├── fast-levenshtein@2.0.6 │ │ └── wordwrap@1.0.0 │ ├── path-is-inside@1.0.2 │ ├── pluralize@1.2.1 │ ├── progress@1.1.8 │ ├─┬ require-uncached@1.0.3 │ │ ├─┬ caller-path@0.1.0 │ │ │ └── callsites@0.2.0 │ │ └── resolve-from@1.0.1 │ ├─┬ shelljs@0.7.8 │ │ ├── interpret@1.0.3 │ │ └─┬ rechoir@0.6.2 │ │ └─┬ resolve@1.4.0 │ │ └── path-parse@1.0.5 │ ├── strip-bom@3.0.0 │ ├── strip-json-comments@2.0.1 │ ├─┬ table@3.8.3 │ │ ├─┬ ajv@4.11.8 │ │ │ └── co@4.6.0 │ │ ├── ajv-keywords@1.5.1 │ │ ├── slice-ansi@0.0.4 │ │ └─┬ string-width@2.1.1 │ │ ├── is-fullwidth-code-point@2.0.0 │ │ └─┬ strip-ansi@4.0.0 │ │ └── ansi-regex@3.0.0 │ ├── text-table@0.2.0 │ └─┬ user-home@2.0.0 │ └── os-homedir@1.0.2 ├─┬ express@4.15.3 │ ├─┬ accepts@1.3.3 │ │ ├─┬ mime-types@2.1.16 │ │ │ └── mime-db@1.29.0 │ │ └── negotiator@0.6.1 │ ├── array-flatten@1.1.1 │ ├── content-disposition@0.5.2 │ ├── content-type@1.0.2 │ ├── cookie@0.3.1 │ ├── cookie-signature@1.0.6 │ ├── depd@1.1.1 │ ├── encodeurl@1.0.1 │ ├── escape-html@1.0.3 │ ├── etag@1.8.0 │ ├─┬ finalhandler@1.0.4 │ │ ├── debug@2.6.8 │ │ └── unpipe@1.0.0 │ ├── fresh@0.5.0 │ ├── merge-descriptors@1.0.1 │ ├── methods@1.1.2 │ ├─┬ on-finished@2.3.0 │ │ └── ee-first@1.1.1 │ ├── parseurl@1.3.1 │ ├── path-to-regexp@0.1.7 │ ├─┬ proxy-addr@1.1.5 │ │ ├── forwarded@0.1.0 │ │ └── ipaddr.js@1.4.0 │ ├── qs@6.4.0 │ ├── range-parser@1.2.0 │ ├─┬ send@0.15.3 │ │ ├── destroy@1.0.4 │ │ ├── http-errors@1.6.2 │ │ └── mime@1.3.4 │ ├── serve-static@1.12.3 │ ├── setprototypeof@1.0.3 │ ├── statuses@1.3.1 │ ├─┬ type-is@1.6.15 │ │ └── media-typer@0.3.0 │ ├── utils-merge@1.0.0 │ └── vary@1.1.1 ├─┬ fitbit-oauth2@0.0.1 │ ├─┬ request@2.81.0 │ │ ├── aws-sign2@0.6.0 │ │ ├── aws4@1.6.0 │ │ ├── caseless@0.12.0 │ │ ├─┬ combined-stream@1.0.5 │ │ │ └── delayed-stream@1.0.0 │ │ ├── extend@3.0.1 │ │ ├── forever-agent@0.6.1 │ │ ├─┬ form-data@2.1.4 │ │ │ └── asynckit@0.4.0 │ │ ├─┬ har-validator@4.2.1 │ │ │ └── har-schema@1.0.5 │ │ ├─┬ hawk@3.1.3 │ │ │ ├── boom@2.10.1 │ │ │ ├── cryptiles@2.0.5 │ │ │ ├── hoek@2.16.3 │ │ │ └── sntp@1.0.9 │ │ ├─┬ http-signature@1.1.1 │ │ │ ├── assert-plus@0.2.0 │ │ │ ├─┬ jsprim@1.4.1 │ │ │ │ ├── assert-plus@1.0.0 │ │ │ │ ├── extsprintf@1.3.0 │ │ │ │ ├── json-schema@0.2.3 │ │ │ │ └─┬ verror@1.10.0 │ │ │ │ └── assert-plus@1.0.0 │ │ │ └─┬ sshpk@1.13.1 │ │ │ ├── asn1@0.2.3 │ │ │ ├── assert-plus@1.0.0 │ │ │ ├── bcrypt-pbkdf@1.0.1 │ │ │ ├─┬ dashdash@1.14.1 │ │ │ │ └── assert-plus@1.0.0 │ │ │ ├── ecc-jsbn@0.1.1 │ │ │ ├─┬ getpass@0.1.7 │ │ │ │ └── assert-plus@1.0.0 │ │ │ ├── jsbn@0.1.1 │ │ │ └── tweetnacl@0.14.5 │ │ ├── is-typedarray@1.0.0 │ │ ├── isstream@0.1.2 │ │ ├── json-stringify-safe@5.0.1 │ │ ├── oauth-sign@0.8.2 │ │ ├── performance-now@0.2.0 │ │ ├── safe-buffer@5.1.1 │ │ ├── stringstream@0.0.5 │ │ ├─┬ tough-cookie@2.3.2 │ │ │ └── punycode@1.4.1 │ │ ├── tunnel-agent@0.6.0 │ │ └── uuid@3.1.0 │ └─┬ simple-oauth2@0.2.1 │ ├── date-utils@1.2.21 │ ├── querystring@0.1.0 │ └─┬ request@2.12.0 │ ├─┬ form-data@0.0.3 │ │ ├── async@0.1.9 │ │ └─┬ combined-stream@0.0.3 │ │ └── delayed-stream@0.0.5 │ └── mime@1.2.7 ├── hyperion-client@1.0.3 ├── moment@2.18.1 ├─┬ socket.io@1.7.4 │ ├─┬ debug@2.3.3 │ │ └── ms@0.7.2 │ ├─┬ engine.io@1.8.4 │ │ ├── base64id@1.0.0 │ │ ├─┬ debug@2.3.3 │ │ │ └── ms@0.7.2 │ │ ├─┬ engine.io-parser@1.3.2 │ │ │ ├── after@0.8.2 │ │ │ ├── arraybuffer.slice@0.0.6 │ │ │ ├── base64-arraybuffer@0.1.5 │ │ │ ├── blob@0.0.4 │ │ │ └── wtf-8@1.0.0 │ │ └─┬ ws@1.1.4 │ │ ├── options@0.0.6 │ │ └── ultron@1.0.2 │ ├─┬ has-binary@0.1.7 │ │ └── isarray@0.0.1 │ ├── object-assign@4.1.0 │ ├─┬ socket.io-adapter@0.5.0 │ │ └─┬ debug@2.3.3 │ │ └── ms@0.7.2 │ ├─┬ socket.io-client@1.7.4 │ │ ├── backo2@1.0.2 │ │ ├── component-bind@1.0.0 │ │ ├── component-emitter@1.2.1 │ │ ├─┬ debug@2.3.3 │ │ │ └── ms@0.7.2 │ │ ├─┬ engine.io-client@1.8.4 │ │ │ ├── component-emitter@1.2.1 │ │ │ ├── component-inherit@0.0.3 │ │ │ ├─┬ debug@2.3.3 │ │ │ │ └── ms@0.7.2 │ │ │ ├── has-cors@1.1.0 │ │ │ ├── parsejson@0.0.3 │ │ │ ├── parseqs@0.0.5 │ │ │ ├── ws@1.1.2 │ │ │ ├── xmlhttprequest-ssl@1.5.3 │ │ │ └── yeast@0.1.2 │ │ ├── indexof@0.0.1 │ │ ├── object-component@0.0.3 │ │ ├─┬ parseuri@0.0.5 │ │ │ └─┬ better-assert@1.0.2 │ │ │ └── callsite@1.0.0 │ │ └── to-array@0.1.4 │ └─┬ socket.io-parser@2.3.1 │ ├── component-emitter@1.1.2 │ ├─┬ debug@2.2.0 │ │ └── ms@0.7.1 │ └── json3@3.3.2 ├─┬ sonus@0.1.8 │ ├─┬ @google-cloud/speech@0.9.4 │ │ ├─┬ @google-cloud/common@0.13.4 │ │ │ ├── array-uniq@1.0.3 │ │ │ ├── arrify@1.0.1 │ │ │ ├─┬ create-error-class@3.0.2 │ │ │ │ └── capture-stack-trace@1.0.0 │ │ │ ├─┬ duplexify@3.5.1 │ │ │ │ ├── end-of-stream@1.4.0 │ │ │ │ └── stream-shift@1.0.0 │ │ │ ├── ent@2.2.0 │ │ │ ├─┬ google-auto-auth@0.7.1 │ │ │ │ ├── async@2.5.0 │ │ │ │ ├── gcp-metadata@0.2.0 │ │ │ │ └─┬ google-auth-library@0.10.0 │ │ │ │ ├─┬ gtoken@1.2.2 │ │ │ │ │ └─┬ google-p12-pem@0.1.2 │ │ │ │ │ └── node-forge@0.7.1 │ │ │ │ ├─┬ jws@3.1.4 │ │ │ │ │ ├── base64url@2.0.0 │ │ │ │ │ └─┬ jwa@1.1.5 │ │ │ │ │ ├── buffer-equal-constant-time@1.0.1 │ │ │ │ │ └── ecdsa-sig-formatter@1.0.9 │ │ │ │ └── lodash.noop@3.0.1 │ │ │ ├── log-driver@1.2.5 │ │ │ ├── methmeth@1.1.0 │ │ │ ├── modelo@4.2.0 │ │ │ ├── retry-request@2.0.5 │ │ │ └─┬ split-array-stream@1.0.3 │ │ │ └── async@2.5.0 │ │ ├─┬ @google-cloud/common-grpc@0.3.6 │ │ │ ├─┬ dot-prop@2.4.0 │ │ │ │ └── is-obj@1.0.1 │ │ │ └─┬ grpc@1.4.1 │ │ │ ├── arguejs@0.2.3 │ │ │ ├── nan@2.6.2 │ │ │ ├─┬ node-pre-gyp@0.6.36 │ │ │ │ ├─┬ mkdirp@0.5.1 │ │ │ │ │ └── minimist@0.0.8 │ │ │ │ ├─┬ nopt@4.0.1 │ │ │ │ │ ├── abbrev@1.1.0 │ │ │ │ │ └─┬ osenv@0.1.4 │ │ │ │ │ ├── os-homedir@1.0.2 │ │ │ │ │ └── os-tmpdir@1.0.2 │ │ │ │ ├─┬ npmlog@4.1.2 │ │ │ │ │ ├─┬ are-we-there-yet@1.1.4 │ │ │ │ │ │ ├── delegates@1.0.0 │ │ │ │ │ │ └─┬ readable-stream@2.3.2 │ │ │ │ │ │ ├── core-util-is@1.0.2 │ │ │ │ │ │ ├── inherits@2.0.3 │ │ │ │ │ │ ├── isarray@1.0.0 │ │ │ │ │ │ ├── process-nextick-args@1.0.7 │ │ │ │ │ │ ├── safe-buffer@5.1.1 │ │ │ │ │ │ ├── string_decoder@1.0.3 │ │ │ │ │ │ └── util-deprecate@1.0.2 │ │ │ │ │ ├── console-control-strings@1.1.0 │ │ │ │ │ ├─┬ gauge@2.7.4 │ │ │ │ │ │ ├── aproba@1.1.2 │ │ │ │ │ │ ├── has-unicode@2.0.1 │ │ │ │ │ │ ├── object-assign@4.1.1 │ │ │ │ │ │ ├── signal-exit@3.0.2 │ │ │ │ │ │ ├─┬ string-width@1.0.2 │ │ │ │ │ │ │ ├── code-point-at@1.1.0 │ │ │ │ │ │ │ └─┬ is-fullwidth-code-point@1.0.0 │ │ │ │ │ │ │ └── number-is-nan@1.0.1 │ │ │ │ │ │ ├─┬ strip-ansi@3.0.1 │ │ │ │ │ │ │ └── ansi-regex@2.1.1 │ │ │ │ │ │ └── wide-align@1.1.2 │ │ │ │ │ └── set-blocking@2.0.0 │ │ │ │ ├─┬ rc@1.2.1 │ │ │ │ │ ├── deep-extend@0.4.2 │ │ │ │ │ ├── ini@1.3.4 │ │ │ │ │ ├── minimist@1.2.0 │ │ │ │ │ └── strip-json-comments@2.0.1 │ │ │ │ ├─┬ request@2.81.0 │ │ │ │ │ ├── aws-sign2@0.6.0 │ │ │ │ │ ├── aws4@1.6.0 │ │ │ │ │ ├── caseless@0.12.0 │ │ │ │ │ ├─┬ combined-stream@1.0.5 │ │ │ │ │ │ └── delayed-stream@1.0.0 │ │ │ │ │ ├── extend@3.0.1 │ │ │ │ │ ├── forever-agent@0.6.1 │ │ │ │ │ ├─┬ form-data@2.1.4 │ │ │ │ │ │ └── asynckit@0.4.0 │ │ │ │ │ ├─┬ har-validator@4.2.1 │ │ │ │ │ │ ├─┬ ajv@4.11.8 │ │ │ │ │ │ │ ├── co@4.6.0 │ │ │ │ │ │ │ └─┬ json-stable-stringify@1.0.1 │ │ │ │ │ │ │ └── jsonify@0.0.0 │ │ │ │ │ │ └── har-schema@1.0.5 │ │ │ │ │ ├─┬ hawk@3.1.3 │ │ │ │ │ │ ├── boom@2.10.1 │ │ │ │ │ │ ├── cryptiles@2.0.5 │ │ │ │ │ │ ├── hoek@2.16.3 │ │ │ │ │ │ └── sntp@1.0.9 │ │ │ │ │ ├─┬ http-signature@1.1.1 │ │ │ │ │ │ ├── assert-plus@0.2.0 │ │ │ │ │ │ ├─┬ jsprim@1.4.0 │ │ │ │ │ │ │ ├── assert-plus@1.0.0 │ │ │ │ │ │ │ ├── extsprintf@1.0.2 │ │ │ │ │ │ │ ├── json-schema@0.2.3 │ │ │ │ │ │ │ └── verror@1.3.6 │ │ │ │ │ │ └─┬ sshpk@1.13.1 │ │ │ │ │ │ ├── asn1@0.2.3 │ │ │ │ │ │ ├── assert-plus@1.0.0 │ │ │ │ │ │ ├── bcrypt-pbkdf@1.0.1 │ │ │ │ │ │ ├── dashdash@1.14.1 │ │ │ │ │ │ ├── ecc-jsbn@0.1.1 │ │ │ │ │ │ ├── getpass@0.1.7 │ │ │ │ │ │ ├── jsbn@0.1.1 │ │ │ │ │ │ └── tweetnacl@0.14.5 │ │ │ │ │ ├── is-typedarray@1.0.0 │ │ │ │ │ ├── isstream@0.1.2 │ │ │ │ │ ├── json-stringify-safe@5.0.1 │ │ │ │ │ ├─┬ mime-types@2.1.15 │ │ │ │ │ │ └── mime-db@1.27.0 │ │ │ │ │ ├── oauth-sign@0.8.2 │ │ │ │ │ ├── performance-now@0.2.0 │ │ │ │ │ ├── qs@6.4.0 │ │ │ │ │ ├── safe-buffer@5.1.1 │ │ │ │ │ ├── stringstream@0.0.5 │ │ │ │ │ ├─┬ tough-cookie@2.3.2 │ │ │ │ │ │ └── punycode@1.4.1 │ │ │ │ │ ├── tunnel-agent@0.6.0 │ │ │ │ │ └── uuid@3.1.0 │ │ │ │ ├─┬ rimraf@2.6.1 │ │ │ │ │ └─┬ glob@7.1.2 │ │ │ │ │ ├── fs.realpath@1.0.0 │ │ │ │ │ ├─┬ inflight@1.0.6 │ │ │ │ │ │ └── wrappy@1.0.2 │ │ │ │ │ ├── inherits@2.0.3 │ │ │ │ │ ├─┬ minimatch@3.0.4 │ │ │ │ │ │ └─┬ brace-expansion@1.1.8 │ │ │ │ │ │ ├── balanced-match@1.0.0 │ │ │ │ │ │ └── concat-map@0.0.1 │ │ │ │ │ ├─┬ once@1.4.0 │ │ │ │ │ │ └── wrappy@1.0.2 │ │ │ │ │ └── path-is-absolute@1.0.1 │ │ │ │ ├── semver@5.3.0 │ │ │ │ ├─┬ tar@2.2.1 │ │ │ │ │ ├── block-stream@0.0.9 │ │ │ │ │ ├─┬ fstream@1.0.11 │ │ │ │ │ │ └── graceful-fs@4.1.11 │ │ │ │ │ └── inherits@2.0.3 │ │ │ │ └─┬ tar-pack@3.4.0 │ │ │ │ ├─┬ debug@2.6.8 │ │ │ │ │ └── ms@2.0.0 │ │ │ │ ├─┬ fstream@1.0.11 │ │ │ │ │ ├── graceful-fs@4.1.11 │ │ │ │ │ └── inherits@2.0.3 │ │ │ │ ├─┬ fstream-ignore@1.0.5 │ │ │ │ │ ├── inherits@2.0.3 │ │ │ │ │ └─┬ minimatch@3.0.4 │ │ │ │ │ └─┬ brace-expansion@1.1.8 │ │ │ │ │ ├── balanced-match@1.0.0 │ │ │ │ │ └── concat-map@0.0.1 │ │ │ │ ├─┬ once@1.4.0 │ │ │ │ │ └── wrappy@1.0.2 │ │ │ │ ├─┬ readable-stream@2.3.2 │ │ │ │ │ ├── core-util-is@1.0.2 │ │ │ │ │ ├── inherits@2.0.3 │ │ │ │ │ ├── isarray@1.0.0 │ │ │ │ │ ├── process-nextick-args@1.0.7 │ │ │ │ │ ├── safe-buffer@5.1.1 │ │ │ │ │ ├── string_decoder@1.0.3 │ │ │ │ │ └── util-deprecate@1.0.2 │ │ │ │ └── uid-number@0.0.6 │ │ │ └─┬ protobufjs@5.0.2 │ │ │ ├─┬ ascli@1.0.1 │ │ │ │ ├── colour@0.7.1 │ │ │ │ └── optjs@3.2.2 │ │ │ ├─┬ bytebuffer@5.0.1 │ │ │ │ └── long@3.2.0 │ │ │ └─┬ yargs@3.32.0 │ │ │ ├── camelcase@2.1.1 │ │ │ ├─┬ cliui@3.2.0 │ │ │ │ └── wrap-ansi@2.1.0 │ │ │ ├── decamelize@1.2.0 │ │ │ ├─┬ os-locale@1.4.0 │ │ │ │ └─┬ lcid@1.0.0 │ │ │ │ └── invert-kv@1.0.0 │ │ │ ├── window-size@0.1.4 │ │ │ └── y18n@3.2.1 │ │ ├── events-intercept@2.0.0 │ │ ├─┬ google-gax@0.13.4 │ │ │ ├─┬ google-auto-auth@0.5.4 │ │ │ │ ├── async@2.5.0 │ │ │ │ └── object-assign@3.0.0 │ │ │ ├── google-proto-files@0.9.1 │ │ │ └── is-stream-ended@0.1.3 │ │ ├── google-proto-files@0.12.1 │ │ ├── is@3.2.1 │ │ ├── propprop@0.3.1 │ │ ├─┬ pumpify@1.3.5 │ │ │ └── pump@1.0.2 │ │ ├─┬ stream-events@1.0.2 │ │ │ └── stubs@3.0.0 │ │ ├── string-format-obj@1.1.0 │ │ └── through2@2.0.3 │ ├── node-record-lpcm16@0.3.0 │ └─┬ snowboy@1.2.0 │ └─┬ node-pre-gyp@0.6.36 │ ├─┬ nopt@4.0.1 │ │ └── abbrev@1.1.0 │ ├─┬ npmlog@4.1.2 │ │ ├─┬ are-we-there-yet@1.1.4 │ │ │ └── delegates@1.0.0 │ │ ├── console-control-strings@1.1.0 │ │ ├─┬ gauge@2.7.4 │ │ │ ├── aproba@1.1.2 │ │ │ ├── has-unicode@2.0.1 │ │ │ ├── signal-exit@3.0.2 │ │ │ └── wide-align@1.1.2 │ │ └── set-blocking@2.0.0 │ ├─┬ rc@1.2.1 │ │ ├── deep-extend@0.4.2 │ │ ├── ini@1.3.4 │ │ └── minimist@1.2.0 │ ├── semver@5.4.1 │ ├─┬ tar@2.2.1 │ │ ├── block-stream@0.0.9 │ │ └── fstream@1.0.11 │ └─┬ tar-pack@3.4.0 │ ├── fstream-ignore@1.0.5 │ └── uid-number@0.0.6 └─┬ wiredep-cli@0.1.0 ├── minimist@1.2.0 └─┬ wiredep@4.0.0 └─┬ bower-config@1.4.0 ├── mout@1.0.0 ├─┬ optimist@0.6.1 │ └── wordwrap@0.0.3 ├─┬ osenv@0.1.4 │ └── os-tmpdir@1.0.2 └── untildify@2.1.0

npm ERR! Linux 3.16.0-4-686-pae npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! node v6.11.2 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE

npm ERR! electron@1.6.11 postinstall: node install.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the electron@1.6.11 postinstall script 'node install.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the electron package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node install.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs electron npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls electron npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/pi/smart-mirror/npm-debug.log

gomezdt commented 7 years ago

i tried to "sudo npm install" and I got this:

pi@raspberrypi:~/smart-mirror $ sudo npm install

electron@1.6.11 postinstall /home/pi/smart-mirror/node_modules/electron node install.js

/home/pi/smart-mirror/node_modules/electron/install.js:47 throw err ^

Error: read ECONNRESET at exports._errnoException (util.js:1020:11) at TLSWrap.onread (net.js:568:26) npm ERR! Linux 3.16.0-4-686-pae npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! node v6.11.2 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE

npm ERR! electron@1.6.11 postinstall: node install.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the electron@1.6.11 postinstall script 'node install.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the electron package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node install.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs electron npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls electron npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/pi/smart-mirror/npm-debug.log

justbill2020 commented 7 years ago

Sorry I don't have a lot of time to dive deep into this but hopefully can point you in the right direction...

First never use sudo npm install... this causes permission issues for the smart mirror...

Second ECONNRESET means your losing internet connectivity and the install fails...

Third why have you not used the 1 line install for the raspberry pi?

I hope this points you in the right direction please forgive the brevity of the response

gomezdt commented 7 years ago

I tried to use the line 1 but i got errors, i thought it might be because im using pixel on a VM.

The auto installer says unsupported device, it says that it only works on pi 2 and 3, so i'll keep trying to do it on manual installation

Thank you for pointing me that ECONNRESET means losing internet conection, that makes sense. In my country the internet is really bad.

I'll try to do it again from scratch and see how it goes

justbill2020 commented 7 years ago

Don't run raspbian pixel in a vm... performance is horrible and not likely... I would recommend running ubuntu in a vm or another build of Linux with a desktop GUI I use ubuntu and it works great!

Sent from my iPhone

On Aug 5, 2017, at 9:32 AM, gomezdt notifications@github.com<mailto:notifications@github.com> wrote:

I tried to use the line 1 but i got errors, i thought it might be because im using pixel on a VM.

Now that you say that ECONNRESET error comes from internet connectivity i think that those errors may have come by the same reason

I'll try to use that and check how it goes.

Thank you very much

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/evancohen/smart-mirror/issues/671#issuecomment-320446965, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AM0Lpdphgblg6VEp9anpgoqP6iaH4Cayks5sVH0YgaJpZM4OuNXQ.

evancohen commented 7 years ago

I've left a detailed solution at https://github.com/evancohen/smart-mirror/commit/252ddb157be346c9e053eb1b3dc4321ecbae6835. Hoping this will work for you. Just remember, if you save your config through the remote again, you'll have to go back and edit it manually.