[Mesh] Installing patchwork with new nodejs version on Fedora
John
jcatkeson at gmail.com
Fri Jul 28 16:15:19 EDT 2017
On Xubuntu I installed Node.js 4.2.6, and ran npm install, and npm
start, but got this errror:
Projects/patchwork$ npm start
> ssb-patchwork at 3.6.5 start /home/john/Documents/Projects/patchwork
> electron index.js
(electron:18943): IBUS-WARNING **: Unable to connect to ibus: Could not
connect: Connection refused
Error: *The module
'/home/john/Documents/Projects/patchwork/node_modules/leveldown/build/Release/leveldown.node'**
**was compiled against a different Node.js version* using
NODE_MODULE_VERSION 46. This version of Node.js requires
NODE_MODULE_VERSION 53. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or`npm install`).
at process.module.(anonymous function) [as dlopen]
(ELECTRON_ASAR.js:173:20)
at Object.Module._extensions..node (module.js:598:18)
at Object.module.(anonymous function) [as .node]
(ELECTRON_ASAR.js:173:20)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at bindings
(/home/john/Documents/Projects/patchwork/node_modules/bindings/bindings.js:76:44)
at Object.<anonymous>
(/home/john/Documents/Projects/patchwork/node_modules/leveldown/leveldown.js:4:46)
^C
Any ideas on how to fix it? Thanks...
On 07/25/2017 08:43 AM, Stuart Gathman wrote:
>
> 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 https://github.com/ssbc/patchwork.git # 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
> Mesh at gathman.org
> https://gathman.org/mailman/listinfo/mesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gathman.org/pipermail/mesh/attachments/20170728/84add8e1/attachment.html>
More information about the Mesh
mailing list