Hello,
I am getting an error when I try and install Parsoid for the Extension:VisualEdiotor on MediaWiki in a "Debian GNU/Linux 8 \n \l" Docker container.
I know this issue has been reported elsewhere, like on this Talk:Parasoid page, but my situation is slightly different.
My set-up -
Computer - Mac Pro, 3.5 GHz 6-Core Intel Xeon E5, 16 GB 1866 MHz DDR RAM, Mac OS High Sierra 10.13.2 (17C88).
Docker - v17.09.1-ce-mac42
Docker images used - MediaWiki: https://hub.docker.com/_/mediawiki/ & MariaDB: https://hub.docker.com/_/mariadb/
After spinning up the Docker container for MariaDB, i linked it to the MediaWiki container doing —
$ docker run -it --name docker-mediawiki-node --link mediawiki-mariadb:mysql -p 9000:80 -d mediawiki
...That all works fine and I'm able to go in and complete the MediaWiki installation and connection to the MariaDB, I get the downloaded, completed LocalSettings.php, which I copy up to the correct directory on my Docker container, that all runs fine and my Docker Test MediaWiki for a client works fine.
I then started following the instructions for the installation of the Extension:VisualEditor here. That all went fine as far as downloading the Extension, adding it to the right place in my Docker container, and editing the LocalSettings.php which went fine. The problem started the Parsoid install, linked to from that Extension:Visual Editor page.
I got to the step where I did in my MediaWiki Docker container command line —
$ apt-get install parsoid
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
parsoid : Depends: nodejs (>= 4.0.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Now as I've said above, I'm aware of others who have run into this error and their solutions are to install Node.js using apt-get.
The things is: I already had installed Node.js using the binaries from from the Node.JS site. I installed it successfully using these instructions here, prior to installing Extension:VisualEditor and attempting to install Parsoid.
I prefer this method because: a) I already know how to quickly install Node.js on Linux systems quickly; b) the apt-get install of Node.js installs it as $ nodejs, which as a long time Node.js coder, I simply hate. Yes, I all ready know you can fake out the system to have it "appear" as $ node from the command line, but I prefer to have it the way Node.js intended it from the get-go.
My Node.js is seen fine and works in the Docker container Debian Linux system just fine —
$ node -v
v8.9.3
$ npm version
{ npm: '5.6.0',
ares: '1.10.1-DEV',
cldr: '31.0.1',
http_parser: '2.7.0',
icu: '59.1',
modules: '57',
nghttp2: '1.25.0',
node: '8.9.3',
openssl: '1.0.2n',
tz: '2017b',
unicode: '9.0',
uv: '1.15.0',
v8: '6.1.534.48',
zlib: '1.2.11' }
...as you can see. I'm running Node.js v8.9.3, the current long term supported version, which is a far greater version of then the Depends: nodejs (>= 4.0.0) that the apt-get installer for Parsoid says it requires. So I'm wondering then, why can't my Parsoid install via apt-get and why doesn't it see that Node.js is all ready installed?
Any help here with this issue would be greatly appreciated. Thank you in advance to anyone who responds with hep.
best,
— faddah portland, oregon, u.s.a.