Page MenuHomePhabricator

Graphoid installation fails
Open, Needs TriagePublic

Description

Running npm install as per the Graphoid documentation gives me this:

Something about the cairo module going missing

Event Timeline

ferdbold raised the priority of this task from to Needs Triage.
ferdbold updated the task description. (Show Details)
ferdbold added a project: Graphoid.
ferdbold added subscribers: ferdbold, Yurik.
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald TranscriptNov 19 2015, 10:19 PM

https://www.npmjs.com/package/canvas is a server-side implementation of the canvas API backed by Cairo. It looks like you should install http://cairographics.org first.

If so, we should probably update the Graphoid documentation to reflect that

I think Graphoid does not have any documentation, we/i should write it. I dug up these notes, but not sure of relevancy any more

sudo apt-get install nodejs-legacy npm libcairo2-dev libjpeg-dev libgif-dev
cd /vagrant/mediawiki/extensions/Graph/nodejs
npm install vega
npm install nodemw
npm install async

on vagrant:
sudo apt-get install nodejs libcairo2-dev libjpeg-dev libgif-dev
npm install vega
npm install nodemw
npm install async