cel 2019-02-25; updated 2019-09-01
If you haven't already done so, set a prefix for npm
and add its bin directory to your $PATH
:
echo prefix=$HOME/.local >> ~/.npmrc echo PATH=\$PATH:$HOME/.local/bin >> ~/.profile PATH=$PATH:$HOME/.local/bin
Put into ~/.ssb/config
:
{ "blobs": { "max": 30000000 } }
Restart ssb-server or Patchwork.
mkdir -p /tmp/ssb-npm-registry-2.0.0 && cd /tmp/ssb-npm-registry-2.0.0 && curl -s 'http://localhost:8989/blobs/get/&E+tZfD6eodncvEddM3QAfsmzTJ003jlPGsqFN5TO7sQ=.sha256' | tar xz && ./package/bootstrap/bin.js --ws-url http://localhost:8989 \ --branch %+bQCoFxCpd6SyFzjeKZOIbOtHW575oSq/AoSYMGGR3k=.sha256 \ --branch %+GtKJu3CCEQlDzGmJbZaGP3yrJCEIvUbvBq3BpuoRmE=.sha256 \ -- install -g ssb-npm@2.0.0
ssb-npm install -g git-ssb@2.6.1 \ --branch %+GtKJu3CCEQlDzGmJbZaGP3yrJCEIvUbvBq3BpuoRmE=.sha256 \ --branch %RuoAU/5P9fDa/+vucRrIhq4qk4cnaQspY2Yyzu6oR7U=.sha256
git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo cd patchfoo ssb-npm install --branch %SizoOItHdaFQtoDkpX/r4KdOmum7BKEbnE9Rx/UWRAQ=.sha256 \ --branch %o3t1vSU0S/cOR1HM+H5TTKTDaZbTnv+SDLVji3l0r0A=.sha256 npm start
mkdir ~/.ssb/node_modules cd ~/.ssb/node_modules git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo cd patchfoo ssb-npm install --branch %SizoOItHdaFQtoDkpX/r4KdOmum7BKEbnE9Rx/UWRAQ=.sha256 \ --branch %o3t1vSU0S/cOR1HM+H5TTKTDaZbTnv+SDLVji3l0r0A=.sha256 sbot plugins.enable patchfoo
Restart ssb-server or Patchwork.
Visit patchfoo at http://localhost:8027/.