I installed Parsoid following the instructions on Parsoid/Developer Setup, using the “clone the mediawiki/services/parsoid/deploy repository” variant and the following commands:
cd /home/parsoid
git clone --recursive https://gerrit.wikimedia.org/r/mediawiki/services/parsoid/deploy .
npm install
chown -R parsoid.parsoid .
However, when starting Parsoid (after having created the src/config.yaml file) with
/usr/bin/node /home/parsoid/src/bin/server.js
I get a “cannot find module” error, because /data/home/parsoid/node_modules/lib/index.js is missing. In fact, there is no /data/home/parsoid/node_modules/lib directory at all.
So, why did the installation procedure not create that lib directory, and what can I do now? Thanks for your help!
Oh, by the way, /home is a symlink to /data/home, if that matters.