<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><br>
    </p>
    <p>On Xubuntu I installed Node.js 4.2.6, and ran npm install, and
      npm start, but got this errror:</p>
    <p><br>
    </p>
    <p>Projects/patchwork$ npm start <br>
      <br>
      > <a class="moz-txt-link-abbreviated" href="mailto:ssb-patchwork@3.6.5">ssb-patchwork@3.6.5</a> start
      /home/john/Documents/Projects/patchwork<br>
      > electron index.js<br>
      <br>
      <br>
      (electron:18943): IBUS-WARNING **: Unable to connect to ibus:
      Could not connect: Connection refused<br>
      Error: <b>The module
'/home/john/Documents/Projects/patchwork/node_modules/leveldown/build/Release/leveldown.node'</b><b><br>
      </b><b>was compiled against a different Node.js version</b> using<br>
      NODE_MODULE_VERSION 46. This version of Node.js requires<br>
      NODE_MODULE_VERSION 53. Please try re-compiling or re-installing<br>
      the module (for instance, using `npm rebuild` or`npm install`).<br>
          at process.module.(anonymous function) [as dlopen]
      (ELECTRON_ASAR.js:173:20)<br>
          at Object.Module._extensions..node (module.js:598:18)<br>
          at Object.module.(anonymous function) [as .node]
      (ELECTRON_ASAR.js:173:20)<br>
          at Module.load (module.js:488:32)<br>
          at tryModuleLoad (module.js:447:12)<br>
          at Function.Module._load (module.js:439:3)<br>
          at Module.require (module.js:498:17)<br>
          at require (internal/module.js:20:19)<br>
          at bindings
(/home/john/Documents/Projects/patchwork/node_modules/bindings/bindings.js:76:44)<br>
          at Object.<anonymous>
(/home/john/Documents/Projects/patchwork/node_modules/leveldown/leveldown.js:4:46)<br>
      ^C<br>
    </p>
    <br>
    Any ideas on how to fix it?  Thanks...<br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 07/25/2017 08:43 AM, Stuart Gathman
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:ce30e6fe-5ab2-3771-b45f-b1dc47ccc0d5@gathman.org">
      <pre wrap="">

So the "simple" installation of patchwork at last night's meetup
wasn't.  Fedora has updated nodejs, and patchwork no longer runs out of
the box.  But after some wee hours research, here is what you do.

On Fedora, as root, install these if you don't already have them:

# dnf install libXext-devel libXtst-devel libxkbfile-devel gcc-c++ m4 automake libtool

Check github for prerequisites for Debian/Ubuntu and MacOS.

As the user you are installing patchwork for:

$ git clone <a class="moz-txt-link-freetext" href="https://github.com/ssbc/patchwork.git">https://github.com/ssbc/patchwork.git</a>    # you might have already done this

$ cd patchwork

$ npm install       # this gets an error because package.json references a missing/deleted commit

$ vi package.json    

# find secret-stack and change

    "secret-stack": "github:ssbc/secret-stack#901c79c841d9a4ee771ce6d9f3951459f8f8079b",

to

    "secret-stack": "github:ssbc/secret-stack",

(this gets the latest instead).

$ npm install   # this should work now

$ npm start    # this gets a error because some binary builds don't match the node version on Fedora

$ npm run rebuild    # this rebuilds native modules with the new node version

$ npm start     # this should run finally!



_______________________________________________
Mesh mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Mesh@gathman.org">Mesh@gathman.org</a>
<a class="moz-txt-link-freetext" href="https://gathman.org/mailman/listinfo/mesh">https://gathman.org/mailman/listinfo/mesh</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>