ssbc / ssb-server

The gossip and replication server for Secure Scuttlebutt - a distributed social network
1.68k stars 164 forks source link

Node is now on version 14 #730

Closed dpriskorn closed 3 years ago

dpriskorn commented 4 years ago

Is it hard to make it work out of the box with v14?

dpriskorn commented 4 years ago

I'm using it wih node14 and it seems to work just fine. I suggest you update the installation instructions.

arj03 commented 4 years ago

A PR is very welcome :)

dpriskorn commented 4 years ago

I did this to install on Parabola GNU/Linux: sudo pacman -S nodejs npm sudo npm install --global sodium-native (this installs v3 that works with the new node) git clone --depth 1 https://github.com/ssbc/ssb-server.git cd ssb-server npm install -g ssb-server

I now get this error, but I don't know if it affects the functionality:

error loading sodium bindings: Cannot find module 'sodium-native'
Require stack:
- /home/egil/.ssb/node_modules/patchfoo/node_modules/chloride/bindings.js
- /home/egil/.ssb/node_modules/patchfoo/node_modules/chloride/index.js
- /home/egil/.ssb/node_modules/patchfoo/node_modules/private-box/index.js
- /home/egil/.ssb/node_modules/patchfoo/lib/app.js
- /home/egil/.ssb/node_modules/patchfoo/index.js
- /usr/lib/node_modules/ssb-server/node_modules/ssb-plugins/load-user-plugins.js
- /usr/lib/node_modules/ssb-server/node_modules/ssb-plugins/index.js
- /usr/lib/node_modules/ssb-server/bin.js
falling back to javascript version.
error loading sodium bindings: Cannot find module 'sodium-native'
Require stack:
- /home/egil/.ssb/node_modules/ssb-private/node_modules/chloride/bindings.js
- /home/egil/.ssb/node_modules/ssb-private/node_modules/chloride/index.js
- /home/egil/.ssb/node_modules/ssb-private/node_modules/ssb-keys/index.js
- /home/egil/.ssb/node_modules/ssb-private/index.js
- /usr/lib/node_modules/ssb-server/node_modules/ssb-plugins/load-user-plugins.js
- /usr/lib/node_modules/ssb-server/node_modules/ssb-plugins/index.js
- /usr/lib/node_modules/ssb-server/bin.js
falling back to javascript version.

ssb-git, ssb-git-web and patchfoo (as ssb-server plugin) seems to work fine it seems. I followed the installation instructions in their respective repos and it went smooth.

arj03 commented 4 years ago

Thats this one: https://github.com/dominictarr/chloride/pull/16.

stale[bot] commented 3 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?