I mentioned it elsewhere[1], but conveniently VisualEditor should be getting easier to install in an upcoming Mediawiki release (probably 1.35, which is coming next), because of a bunch of parser centralization work. Fingers crossed, but the hassle that you just went through shouldn't be needed soon.
[1]: https://news.ycombinator.com/item?id=23907291