evancohen / sonus-electron-boilerplate

Example of sonus running in electron
MIT License
14 stars 0 forks source link

Error on first run #1

Closed nick-jonas closed 7 years ago

nick-jonas commented 7 years ago

I get this error when trying to run it, not sure how to solve it:

Uncaught Error: Cannot find module '/Users/njonas/Downloads/sonus-electron-boilerplate-master/node_modules/snowboy/lib/node/binding/Release/electron-v1.6-darwin-x64/snowboy.node'

NetOpWibby commented 7 years ago

Have you tried compiling Snowboy on your system?

evancohen commented 7 years ago

Looks like Nick's issue was resolved by changing the Electron version https://github.com/Kitt-AI/snowboy/pull/52#issuecomment-283520629. I haven't had the chance to try to reproduce this, but the last time I tested the end-to-end install on a clean machine it worked fine.

I'm going to keep this issue open until I can verify that it's not a problem.

NetOpWibby commented 7 years ago

Awesome!

AlexanderKozhevin commented 7 years ago

+1

AlexanderKozhevin commented 7 years ago

@evancohen I tried to run my example, then used this one. And still getting the same thing. I used brew to install sox. But smth is still missing. You can close the issue, cause maybe it because of Sierra. I'll try another library.

evancohen commented 7 years ago

Shouldn't be. I'm guessing this is because of a version mismatch between what version of electron is being downloaded and what is being used as the target in .npmrc

The easiest way to fix this would be to run npm ls electron, update .npmrc to reflect the correct version, rm -r node_modules and then npm install again.

evancohen commented 7 years ago

@AlexanderKozhevin do you mind testing that fix and seeing if it works for you?