smart-mirror icon indicating copy to clipboard operation
smart-mirror copied to clipboard

Cannot find module '@google-cloud/speech'

Open wuppi83 opened this issue 10 years ago • 8 comments

Hi Evan,

do you have an idea ... what is the problem?!

module.js:327
    throw err;
    ^

Error: Cannot find module '@google-cloud/speech'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/home/pi/smart-mirror/sonus.js:11:16)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)

wuppi83 avatar Nov 09 '16 19:11 wuppi83

did you use the install script for raspberry pi? or a manual installation?

it looks like you're missing dependencies... can you browse the internet?

justbill2020 avatar Nov 09 '16 19:11 justbill2020

I used the script :0( ... and i didn't find anything about this error by the internet ..

wuppi83 avatar Nov 09 '16 19:11 wuppi83

i can't replicate this currently

justbill2020 avatar Nov 09 '16 20:11 justbill2020

Maybe

npm install --save google-cloud

works ... i will test it !

wuppi83 avatar Nov 09 '16 20:11 wuppi83

I would say to do git pull and then npm update from the smart-mirror folder

also you have downloaded your keyfile.json from the google cloud platform console right?

also you've configured your config.js?

justbill2020 avatar Nov 09 '16 20:11 justbill2020

pi@Magic-Mirror:~/smart-mirror $ git pull
Already up-to-date.
pi@Magic-Mirror:~/smart-mirror $ npm update
[email protected] node_modules/npm
[email protected] node_modules/bower

also you have downloaded your keyfile.json from the google cloud platform console right? Yes

also you've configured your config.js? Yes

npm install google-speech --save
npm install --save google-cloud

Doesn't fix the problem :0(

wuppi83 avatar Nov 09 '16 21:11 wuppi83

Running npm install should resolve the issue, but if it doesn't then you can try

npm install @google-cloud/speech --save

For reference: https://www.npmjs.com/package/@google-cloud/speech

evancohen avatar Nov 11 '16 01:11 evancohen

npm install @google-cloud/speech --save

Works for me :0) Thank you Evan !

wuppi83 avatar Nov 15 '16 18:11 wuppi83