streamr-dev/broker

Can't install Broker on Ubuntu 16 / Node v16.1.0

Opened this issue · 5 comments

The command npm install streamr-broker --global breaks with the error:

path /usr/lib/node_modules/streamr-broker/node_modules/node-datachannel
npm ERR! command failed

Bildschirmfoto 2021-05-21 um 20 55 49

harbu commented

Hey, you need to install some build tools from the looks of it.

Have you tried the suggested sudo apt-get install g++ ?

@harbu Thanks for the hint. Ok, after installing of g++ and fixing some python issues, i get an error This version of µWS is not compatible with your Node.js build

Bildschirmfoto 2021-05-24 um 19 20 35

Probably I should wait for more detailed installation instructions ;)

harbu commented

Which node version are you using? We are using v14 so that should work best here. You can check your version with node --version.

Just tried with a fresh Ubuntu 21.04 x64 instance, same error. Node v16.2.0.

Bildschirmfoto 2021-06-02 um 20 52 17

Ok, the broker is running. Don't work with Node.js 16.x, don't work with Node.js v15.x. Only Node.js v14 made the thing fly. Maybe that should be mentioned somewhere in the documentation? Ubuntu 21.04 comes with Node.js v16.2.

npm install streamr-broker --global install streamr-broker v22.0.0. The GitHub version (20.0.0) is outdated, so their configs are not compatible to v22.0.0 hosted on npm. FYI.

Another warnings after running broker configs/development-2.env.json:
could not connect to tracker ws://191.248.187.xxx:30301

Which IP address should be defined? The public one or the internal?