cel 2019-02-25; updated 2020-07-09
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
mkdir -p /tmp/ssb-npm-registry-2.1.3 && cd /tmp/ssb-npm-registry-2.1.3 && curl -s 'http://localhost:8989/blobs/get/&ptkWRUIPdBGTZ3W2BWPBuyFw4RumSjQu/DPJ3kufk1s=.sha256' | tar xz && ./package/bootstrap/bin.js --ws-url http://localhost:8989 \ --branch %z04WZqBf7xqJcwwzGSAGzNlfMbE4F/CPS54AfHbP0+g=.sha256 \ install -g ssb-npm@2.0.4
ssb-npm install -g git-ssb@2.8.0 \ --branch %z6WY2qNlcCSukssZOH652dUyKzU8FvCSKP+1DTdclEQ=.sha256
git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo cd patchfoo ssb-npm install --branch %e/unnFWjNwhJuFtH+DmkNqqvVggrufu/sZxRU5e59Is=.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 %e/unnFWjNwhJuFtH+DmkNqqvVggrufu/sZxRU5e59Is=.sha256 sbot plugins.enable patchfoo
Restart ssb-server or Patchwork.
Visit patchfoo at http://localhost:8027/.