[Mesh] Installing patchwork with new nodejs version on Fedora

Stuart Gathman stuart at gathman.org
Tue Jul 25 08:43:17 EDT 2017



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!






More information about the Mesh mailing list