stephen / airsonos

:musical_note: AirPlay to Sonos
MIT License
2.1k stars 252 forks source link

"Error: Module did not self-register" #376

Closed hellohynes closed 7 years ago

hellohynes commented 7 years ago

The script has been working great for years, but yesterday this error message popped up when trying to run the airsonos script:

/usr/local/lib/node_modules/airsonos/node_modules/nicercast/node_modules/lame/node_modules/bindings/bindings.js:83
        throw e
        ^

Error: Module did not self-register.
    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 bindings (/usr/local/lib/node_modules/airsonos/node_modules/nicercast/node_modules/lame/node_modules/bindings/bindings.js:76:44)
    at Object.<anonymous> (/usr/local/lib/node_modules/airsonos/node_modules/nicercast/node_modules/lame/lib/bindings.js:1:99)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    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)

What does mean and how can I fix it?

I'm on macOS Sierra 10.12.5, iMac Retina 5k. I have tried updating npm modules and installing the nodetunes branch mentioned within @julianrendell's post in PR #373. Neither have corrected this issue.

hellohynes commented 7 years ago

Not sure what the issue was exactly. I got it working again but uninstalling and then re-installing Node and NPM.

Then re-running npm install airsonos -g fixed my issue.