Hello there.
I just migrated an instance from mastohost to my own server.
Everything is OK, except the streaming service won’t start…
When i try a NODE_ENV=production PORT=4000 /usr/bin/npm run start
, I got this error :
/home/mastodon/cnbt/node_modules/uws/uws.js:38
throw new Error('Compilation of µWebSockets has failed and there is no pre-compiled binary ' +
^
Error: Compilation of µWebSockets has failed and there is no pre-compiled binary available for your system. Please install a supported C++11 compiler and reinstall the module 'uws'.
at native (/home/mastodon/cnbt/node_modules/uws/uws.js:38:19)
at Object.<anonymous> (/home/mastodon/cnbt/node_modules/uws/uws.js:42:3)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (/home/mastodon/cnbt/streaming/index.js:10:19)
I’ve read this topic and tried to rebuild uws, but this doesn’t help.
I’ve also read this one and upgraded nodejs to v10.1.0 but it doesn’t help neither.
And I don’t know how to print the binary it’s looking for.
I’m running Ubuntu 18.04, node 10.1.0 and npm 5.6.0.
Does someone have a clue ?