我一直在尝试在服务器上使用声音命令,但是当我使用它们时它们不起作用,并且会弹出此错误:
Error: The module '/app/node_modules/node-opus/build/Release/node-opus.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 64. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
at Object.Module._extensions..node (module.js:681:18)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at bindings (/app/node_modules/bindings/bindings.js:76:44)
at Object.<anonymous> (/app/node_modules/node-opus/lib/OpusEncoder.js:4:34)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
我从未遇到过此错误,并且在本地托管时可以正常工作。