Topic on Talk:Parsoid

"yum install git npm" doesn't work

6
Summary by Arlolra

Install Parsoid/PHP instead

TheSplatGuy (talkcontribs)

Hello all, I have been trying to set up VisualEditor for two days now because of how much a nightmare this is and I have finally gotten to this point where I need to download parsoid. So I am on a shared server which means that I can't use sudo or apt-get so I need to use the development section of this article. However when I try to put in the command "yum install git npm" it responds with the folling error message:

CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/yum.conf

The thing is I have absolutely no clue how to solve this and I am getting pretty sick and tired of dealing with this stuff so please any advice would help. I am using an SSH through my terminal, Bluehost as my hosting service, and cPanel as the management system.

Aron Manning (talkcontribs)

Tip: join us on MediaWiki_on_Discord for help.

I don't know your hosting provider, so this might not be helpful, but anyway: yum is also a package manager just like apt-get, so that might be the reason why you can't use it.

As you're running that command I assume git and npm are not installed... you can skip git by uploading through ssh/scp. npm: I assume you can install it by hand in your user folder, or you might not even need it if you are running the latest parsoid: it's been ported to php recently. However, I haven't used that yet, so I suggest you asking this on discord. Hope that helps.

TheSplatGuy (talkcontribs)

I am sorry I did not mention this earlier but the hosting service I use is Bluehost. the hosting plan that I got is Shared hosting and I use cPanel for file management. from what I have done so far git works, but npm and yum do not (because they are not installed).

Arlolra (talkcontribs)
Aron Manning (talkcontribs)

Using Parsoid/PHP is a good idea. It's part of MediaWiki since 1.35 (October 2019), but it's not enabled by default (that's expected to change around or after June 2020). You find it in `vendor/wikimedia/parsoid` folder installed as a package by composer.

The mediawiki page describes the configuration, but there are some confusing bits. I've just recently set it up for myself so if you need help, I can be to your service (preferably on discord, but here too) @TheSplatGuy.

Arlolra (talkcontribs)

Feel free to update the page to clarify the confusing bits :)