evancohen / sonus

:speech_balloon: /so.nus/ STT (speech to text) for Node with offline hotword detection
MIT License
618 stars 79 forks source link

electron error #70

Closed wiresharkkkk closed 6 years ago

wiresharkkkk commented 6 years ago

WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module '/home/pi/MagicMirror/modules/node_modules/snowboy/lib/node/binding/Release/electron-v1.7-linux-arm/snowboy.node'

image

evancohen commented 6 years ago

Check out #15 - that should have the info you need :)

wiresharkkkk commented 6 years ago

@evancohen thank you! I have run './node_modules/.bin/electron-rebuild --pre-gyp-fix' We confirmed that the electron-v1.4-linux-arm directory was created in 'node_moduls / snowboy / lib / node / binding / Release'.

However, the error still occurs. 20171218_184140

wiresharkkkk commented 6 years ago

20171218_223602

evancohen commented 6 years ago

Ah, this is for Magic Mirror? You may want to just drop in the .npm config file from Sonus electron prebuilt (liked to in that thread) - you may have to change the version number inside it too.

wiresharkkkk commented 6 years ago

Is this? 20171220_223446

I changed this to 3.10.10. Do I have to do 'npm electron rebuild'? 20171220_223722

evancohen commented 6 years ago

Not quite, I'm talking about .npmrc. For the boilerplate that's here: https://github.com/evancohen/sonus-electron-boilerplate/blob/master/.npmrc