How to Install Parsoid module for MediaWiki
Note: This article is kind of old. As of today any version of NodeJS should work – for Solairs you might need to compile from source, for details how to Buil NodeJS on Solaris click here.
Must use node js versin 10.20 (not 10.28)
Add make (or GNUmake) to your path
export PATH=/usr/gnu/bin:/usr/sbin:/usr/bin:/u01/app/11.2.0/grid/bin:/opt/SUNWxvmoc/bin:/opt/node-v0.10.20-sunos-x64/bin/
Now run.
cd parsoid npm install
To get nodes version 10.28.
First do npm install in version 10.20
Now, to change to version 10.28 (by path), set ssl to false (this is needed if you are behind a proxy)
npm config set strict-ssl false
Check the npm config
cat /root/.npmrc
Run to uninstall npm
npm rm npm -g
Update npm manually
curl https://www.npmjs.org/install.sh | sh
Note: For the above to work do the below.
First cd to npm
mkdir lib; ln -s ../bin/node;ln -s ../bin/npm
Last, just update npm withh all stuff
npm update