Topic on Talk:Parsoid

Summary by Arlolra

Run in the root of the deploy repo

Squeak24 (talkcontribs)

Hi Everyone.

Just further to this thread Topic:Uchpv0wwa3sc6e2o, since that thread I have moved the Wiki to a new server, hence the reason for the delay in coming back to this.

I have done what was suggested and downloaded the deployment version of Parsoid and have installed node.js onto the server. I have tried to run

node bin\server.js

From the parsoid directory, but I get the error:

D:\wamp64\www\node_modules\parsoid>node -v

v8.12.0

D:\wamp64\www\node_modules\parsoid>node bin\server.js

module.js:550

    throw err;

    ^

Error: Cannot find module 'service-runner'

    at Function.Module._resolveFilename (module.js:548:15)

    at Function.Module._load (module.js:475:25)

    at Module.require (module.js:597:17)

    at require (internal/module.js:11:18)

    at Object.<anonymous> (D:\wamp64\www\node_modules\parsoid\bin\server.js:5:21

)

    at Module._compile (module.js:653:30)

    at Object.Module._extensions..js (module.js:664:10)

    at Module.load (module.js:566:32)

    at tryModuleLoad (module.js:506:12)

    at Function.Module._load (module.js:498:3)

My LocalSettings.php looks like this:

wfLoadExtension( 'VisualEditor' );

//Enable by default for everybody

$wgDefaultUserOptions['visualeditor-enable'] = 1;

$wgVirtualRestConfig['modules']['parsoid'] = array(

    // URL to the Parsoid instance

    // Use port 8142 if you use the Debian package

    'url' => 'http://domain.com:8000',

);

And my config.yamb looks like this:

mwApis:

        - # This is the only required parameter,

          # the URL of you MediaWiki API endpoint.

          uri: 'http://domain.com/api.php'

          # The "domain" is used for communication with Visual Editor

          # and RESTBase.  It defaults to the hostname portion of

          # the `uri` property above, but you can manually set it

          # to an arbitrary string. It must match the "domain" set

          # in $wgVirtualRestConfig.

          # domain: 'localhost'  # optional

          # To specify a proxy (or proxy headers) specific to this prefix

          # (which overrides defaultAPIProxyURI). Alternatively, set `proxy`

          # to `null` to override and force no proxying when a default proxy

          # has been set.

          #proxy:

          #    uri: 'http://my.proxy:1234/'

          #    headers:  # optional

          #        'X-Forwarded-Proto': 'https'

          # See below, defaults to true.

          #strictSSL: false

I have localsettings.js commented out at the moment, but either way it still doesn't seem to want to work.

I'm not sure what I'm doing wrong.

Any help is appreciated.

Arlolra (talkcontribs)

What's the path the deploy repo you downloaded? You should be running the command from the root of that directory.

Squeak24 (talkcontribs)

I have tried to have the deploy repo in the www directory, I changed the directory command prompt to that directory. I also put it in the Users AppData but still nothing. I have tried nodejs as well but that comes back with nothing.

I am using a server that is not connected to the Internet, it is connected to the internal network without Internet access.

Any help is appreciated.

210.50.246.156 (talkcontribs)

OK, I found out what the issue was, I downloaded the wrong version. I have it working now. Just need to get restBase installed now.