Talk:Parsoid/Developer Setup

From mediawiki.org
Jump to navigation Jump to search

No Git[edit]

I cannot get git from within my company. Is there a way to install parsoid without using git services?

  • The setup page has instructions for Ubuntu/Debian, but your best bet may be to run a git clone on another box and just copy everything over. Turnstep (talk) 20:10, 16 February 2016 (UTC)

SELINUX ERROR "Error loading data from server: no_vrs: The VirtualRESTService"[edit]

This error occurs usually on CENTOS 6 / 7 servers running SELINUX. In order to resolve this problem please disable SELINUX. How to disable SELINUX

Parsoid 0.9.0 update brings 406 Not Acceptable docserver error in VisualEditor REL_30 on Mediawiki 1.30[edit]

Full article

You can change the config file instead of Parsoid code: edit /etc/mediawiki/parsoid/config.yaml and add strictAcceptCheck: false at the same level as "userAgent" in the beginning, i.e. just under "conf". Example:

services:
  - module: lib/index.js
    entrypoint: apiServiceWorker
    conf:
        # For backwards compatibility, and to continue to support non-static
        # configs for the time being, optionally provide a path to a
        # localsettings.js file. See localsettings.example.js
        #localsettings: ./localsettings.js
        
        # Set your own user-agent string
        # Otherwise, defaults to:
        # 'Parsoid/<current-version-defined-in-package.json>'
        #userAgent: 'My-User-Agent-String'
        
        # /!\ COMPATIBILITY for Parsoid 0.9.0 with MediaWiki before 1.31
        strictAcceptCheck: false
        
        # Configure Parsoid to point to your MediaWiki instances.
        mwApis:
...

Fail to install Contextify on Windows server 2012 R2[edit]

I tried a lot of possible solutions because I can't seem to succeed in installing Contextify.

First I had a lot of trouble to get an installation of VS2010 but finally I found a link to this ancient ;-) version of VS2010, follow this link VS2010Express1.iso. The link is mentioned here: https://github.com/nodejs/node-gyp/wiki/Visual-Studio-2010-Setup
Then on this article node-gyp issue 177 someone suggested to start a Visual Studio Command Prompt, which helped me to solve some compiler version issues.

But now I still have some issues compiling contextify. I get these errors:



C:\Program Files (x86)\nodejs>npm install contextify

> contextify@0.1.15 install C:\Program Files (x86)\nodejs\node_modules\contextify
> node-gyp rebuild


C:\Program Files (x86)\nodejs\node_modules\contextify>if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gy
p.js" rebuild )  else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  contextify.cc
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(336): error C2988: unrecognizable template declaration/definition [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(336): error C2059: syntax error : 'using' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(469): error C2988: unrecognizable template declaration/definition [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(469): error C2059: syntax error : 'using' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(472): error C2332: 'enum' : missing tag name [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(472): error C3306: 'v8::<unnamed-tag>': unnamed class template is not allowed [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contexti
fy.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(472): error C2236: unexpected 'class' 'v8::WeakCallbackType'. Did you forget a ';'? [C:\Program Files (x86)\nodejs\node_modules\contextify\build\co
ntextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(472): error C3381: 'v8::WeakCallbackType' : assembly access specifiers are only available in code compiled with a /clr option [C:\Program Files (x8
6)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(580): error C2061: syntax error : identifier 'WeakCallbackType' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
          c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(646) : see reference to class template instantiation 'v8::PersistentBase<T>' being compiled
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(641): error C2253: 'PersistentBase<T>' : pure specifier or abstract override specifier only allowed on virtual function [C:\Program Files (x86)\nod
ejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(848): error C2253: 'Global<T>' : pure specifier or abstract override specifier only allowed on virtual function [C:\Program Files (x86)\nodejs\node
_modules\contextify\build\contextify.vcxproj]
          c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(851) : see reference to class template instantiation 'v8::Global<T>' being compiled
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(856): error C2988: unrecognizable template declaration/definition [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(856): error C2059: syntax error : 'using' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(919): error C2989: 'v8::HandleScope' : class template has already been declared as a non-class template [C:\Program Files (x86)\nodejs\node_modules
\contextify\build\contextify.vcxproj]
          c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(319) : see declaration of 'v8::HandleScope'
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(953): error C2989: 'v8::EscapableHandleScope' : class template has already been declared as a non-class template [C:\Program Files (x86)\nodejs\nod
e_modules\contextify\build\contextify.vcxproj]
          c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(135) : see declaration of 'v8::EscapableHandleScope'
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(983): error C2989: 'v8::Data' : class template has already been declared as a non-class template [C:\Program Files (x86)\nodejs\node_modules\contex
tify\build\contextify.vcxproj]
          c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(74) : see declaration of 'v8::Data'
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(1117): error C2989: 'v8::Script' : class template has already been declared as a non-class template [C:\Program Files (x86)\nodejs\node_modules\con
textify\build\contextify.vcxproj]
          c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(96) : see declaration of 'v8::Script'
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(1556): error C2989: 'v8::StackTrace' : class template has already been declared as a non-class template [C:\Program Files (x86)\nodejs\node_modules
\contextify\build\contextify.vcxproj]
          c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(101) : see declaration of 'v8::StackTrace'
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(1619): error C2989: 'v8::StackFrame' : class template has already been declared as a non-class template [C:\Program Files (x86)\nodejs\node_modules
\contextify\build\contextify.vcxproj]
          c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(100) : see declaration of 'v8::StackFrame'
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(2028): error C2989: 'v8::Value' : class template has already been declared as a non-class template [C:\Program Files (x86)\nodejs\node_modules\cont
extify\build\contextify.vcxproj]
          c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(108) : see declaration of 'v8::Value'
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(2034): error C2989: 'v8::Primitive' : class template has already been declared as a non-class template [C:\Program Files (x86)\nodejs\node_modules\
contextify\build\contextify.vcxproj]
          c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(93) : see declaration of 'v8::Primitive'
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(2049): error C2989: 'v8::Boolean' : class template has already been declared as a non-class template [C:\Program Files (x86)\nodejs\node_modules\co
ntextify\build\contextify.vcxproj]
          c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(70) : see declaration of 'v8::Boolean'
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(2069): error C2989: 'v8::Name' : class template has already been declared as a non-class template [C:\Program Files (x86)\nodejs\node_modules\conte
xtify\build\contextify.vcxproj]
          c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(86) : see declaration of 'v8::Name'
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(2072): error C2332: 'enum' : missing tag name [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(2072): error C3306: 'v8::<unnamed-tag>': unnamed class template is not allowed [C:\Program Files (x86)\nodejs\node_modules\contextify\build\context
ify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(2072): error C2236: unexpected 'class' 'v8::NewStringType'. Did you forget a ';'? [C:\Program Files (x86)\nodejs\node_modules\contextify\build\cont
extify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(2072): error C3381: 'v8::NewStringType' : assembly access specifiers are only available in code compiled with a /clr option [C:\Program Files (x86)
\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(2436): error C2989: 'v8::String' : class template has already been declared as a non-class template [C:\Program Files (x86)\nodejs\node_modules\con
textify\build\contextify.vcxproj]
          c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(102) : see declaration of 'v8::String'
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(2474): error C2989: 'v8::Symbol' : class template has already been declared as a non-class template [C:\Program Files (x86)\nodejs\node_modules\con
textify\build\contextify.vcxproj]
          c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(104) : see declaration of 'v8::Symbol'
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(2488): error C2989: 'v8::Number' : class template has already been declared as a non-class template [C:\Program Files (x86)\nodejs\node_modules\con
textify\build\contextify.vcxproj]
          c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(87) : see declaration of 'v8::Number'
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(2503): error C2989: 'v8::Integer' : class template has already been declared as a non-class template [C:\Program Files (x86)\nodejs\node_modules\co
ntextify\build\contextify.vcxproj]
          c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(82) : see declaration of 'v8::Integer'
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(2517): error C2989: 'v8::Int32' : class template has already been declared as a non-class template [C:\Program Files (x86)\nodejs\node_modules\cont
extify\build\contextify.vcxproj]
          c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(81) : see declaration of 'v8::Int32'
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(2531): error C2989: 'v8::Uint32' : class template has already been declared as a non-class template [C:\Program Files (x86)\nodejs\node_modules\con
textify\build\contextify.vcxproj]
          c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(106) : see declaration of 'v8::Uint32'
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(2939): error C2989: 'v8::Object' : class template has already been declared as a non-class template [C:\Program Files (x86)\nodejs\node_modules\con
textify\build\contextify.vcxproj]
          c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(89) : see declaration of 'v8::Object'
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(2968): error C2989: 'v8::Array' : class template has already been declared as a non-class template [C:\Program Files (x86)\nodejs\node_modules\cont
extify\build\contextify.vcxproj]
          c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(69) : see declaration of 'v8::Array'
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3180): error C2504: 'v8::Object' : base class undefined [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3187): error C2061: syntax error : identifier 'FunctionCallback' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3189): error C2059: syntax error : ')' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3189): error C2143: syntax error : missing ')' before ';' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3193): error C2061: syntax error : identifier 'FunctionCallback' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3193): error C2059: syntax error : ')' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3193): error C2143: syntax error : missing ')' before ';' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3204): error C2059: syntax error : 'return' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3204): error C2238: unexpected token(s) preceding ';' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3209): error C2146: syntax error : missing ';' before identifier 'Call' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcx
proj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3215): error C2270: 'GetName' : modifiers not allowed on nonmember functions [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextif
y.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3223): error C2270: 'GetInferredName' : modifiers not allowed on nonmember functions [C:\Program Files (x86)\nodejs\node_modules\contextify\build\c
ontextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3229): error C2270: 'GetDisplayName' : modifiers not allowed on nonmember functions [C:\Program Files (x86)\nodejs\node_modules\contextify\build\co
ntextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3235): error C2270: 'GetScriptLineNumber' : modifiers not allowed on nonmember functions [C:\Program Files (x86)\nodejs\node_modules\contextify\bui
ld\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3240): error C2270: 'GetScriptColumnNumber' : modifiers not allowed on nonmember functions [C:\Program Files (x86)\nodejs\node_modules\contextify\b
uild\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3245): error C2270: 'IsBuiltin' : modifiers not allowed on nonmember functions [C:\Program Files (x86)\nodejs\node_modules\contextify\build\context
ify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3250): error C2270: 'ScriptId' : modifiers not allowed on nonmember functions [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contexti
fy.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3256): error C2270: 'GetBoundFunction' : modifiers not allowed on nonmember functions [C:\Program Files (x86)\nodejs\node_modules\contextify\build\
contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3258): error C2270: 'GetScriptOrigin' : modifiers not allowed on nonmember functions [C:\Program Files (x86)\nodejs\node_modules\contextify\build\c
ontextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3262): error C2059: syntax error : 'private' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3263): error C2059: syntax error : ')' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3272): error C2504: 'Object' : base class undefined [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3274): error C2504: 'Object' : base class undefined [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3280): error C2143: syntax error : missing ';' before '<' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3280): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Program Files (x86)\nodejs\node_modules\contex
tify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3280): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Program Files (x86)\nodejs\node_modules\contex
tify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3280): error C2238: unexpected token(s) preceding ';' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3281): error C2143: syntax error : missing ';' before '<' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3281): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Program Files (x86)\nodejs\node_modules\contex
tify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3281): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Program Files (x86)\nodejs\node_modules\contex
tify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3282): error C2238: unexpected token(s) preceding ';' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3287): error C2143: syntax error : missing ';' before '<' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3287): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Program Files (x86)\nodejs\node_modules\contex
tify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3287): error C2238: unexpected token(s) preceding ';' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3293): error C2061: syntax error : identifier 'Local' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3295): error C2143: syntax error : missing ';' before '<' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3295): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Program Files (x86)\nodejs\node_modules\contex
tify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3295): error C2238: unexpected token(s) preceding ';' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3297): error C2061: syntax error : identifier 'Local' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3299): error C2143: syntax error : missing ';' before '<' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3299): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Program Files (x86)\nodejs\node_modules\contex
tify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3299): error C2238: unexpected token(s) preceding ';' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3301): error C2061: syntax error : identifier 'Value' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3305): error C2061: syntax error : identifier 'Value' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3315): error C2143: syntax error : missing ';' before '<' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3315): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Program Files (x86)\nodejs\node_modules\contex
tify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3315): error C2238: unexpected token(s) preceding ';' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3316): error C2143: syntax error : missing ';' before '<' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3316): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Program Files (x86)\nodejs\node_modules\contex
tify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3317): error C2238: unexpected token(s) preceding ';' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3320): error C2143: syntax error : missing ';' before '<' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3320): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Program Files (x86)\nodejs\node_modules\contex
tify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3320): error C2238: unexpected token(s) preceding ';' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3321): error C2143: syntax error : missing ';' before '<' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3321): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Program Files (x86)\nodejs\node_modules\contex
tify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3322): error C2238: unexpected token(s) preceding ';' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3325): error C2143: syntax error : missing ';' before '<' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3325): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Program Files (x86)\nodejs\node_modules\contex
tify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3325): error C2238: unexpected token(s) preceding ';' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3326): error C2143: syntax error : missing ';' before '<' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3326): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Program Files (x86)\nodejs\node_modules\contex
tify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3327): error C2238: unexpected token(s) preceding ';' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3335): error C2061: syntax error : identifier 'Value' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3339): error C2061: syntax error : identifier 'Value' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3349): error C2332: 'enum' : missing tag name [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3349): error C2236: unexpected 'class' 'ArrayBufferCreationMode'. Did you forget a ';'? [C:\Program Files (x86)\nodejs\node_modules\contextify\buil
d\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3349): error C3381: 'ArrayBufferCreationMode' : assembly access specifiers are only available in code compiled with a /clr option [C:\Program Files
 (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3349): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Program Files (x86)\nodejs\node_modules\contex
tify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3349): error C2143: syntax error : missing ';' before '}' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3349): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Program Files (x86)\nodejs\node_modules\contex
tify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3356): error C2504: 'Object' : base class undefined [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3373): error C2628: 'ArrayBuffer::Allocator' followed by 'void' is illegal (did you forget a ';'?) [C:\Program Files (x86)\nodejs\node_modules\cont
extify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3399): error C3861: 'data_': identifier not found [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3399): error C2461: 'Contents' : constructor syntax missing formal parameters [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contexti
fy.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3399): error C2059: syntax error : 'constant' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3399): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Program Files (x86)\nodejs\node_modules\contex
tify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3399): error C2143: syntax error : missing ';' before '{' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3399): error C2334: unexpected token(s) preceding '{'; skipping apparent function body [C:\Program Files (x86)\nodejs\node_modules\contextify\build
\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3401): error C2059: syntax error : 'return' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3401): error C2238: unexpected token(s) preceding ';' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3402): error C2146: syntax error : missing ';' before identifier 'ByteLength' [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contexti
fy.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3402): error C2270: 'ByteLength' : modifiers not allowed on nonmember functions [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contex
tify.vcxproj]
c:\users\webadmin\.node-gyp\5.6.0\include\node\v8.h(3402): fatal error C1003: error count exceeds 100; stopping compilation [C:\Program Files (x86)\nodejs\node_modules\contextify\build\contextify.vcx
proj]
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Program Files (x86)\nodejs\node_modules\contextify
gyp ERR! node -v v5.6.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
C:\Program Files (x86)\nodejs
+-- node-gyp@3.3.0
`-- rebuild@0.1.2

npm WARN enoent ENOENT: no such file or directory, open 'C:\Program Files (x86)\nodejs\package.json'
npm WARN nodejs No description
npm WARN nodejs No repository field.
npm WARN nodejs No README data
npm WARN nodejs No license field.
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "contextify"
npm ERR! node v5.6.0
npm ERR! npm  v3.6.0
npm ERR! code ELIFECYCLE

npm ERR! contextify@0.1.15 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify@0.1.15 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the contextify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs contextify
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls contextify
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Program Files (x86)\nodejs\npm-debug.log

C:\Program Files (x86)\nodejs>



Can someone tell me how to solve this??

PM2 Startup systemctl:active&sub failed (Startup PM2 not working)[edit]

node:source install(The latest version)
Operating System:Ubuntu 16.04 x64
steps:
git glone http://.. work
cd /home/myname/parsoid .. work
sudo Cnpm install .. work
cp&vim config.yaml .. work
myname@my-vm:~/Parsoid$ node bin/server.js ..work
Browser Access server_address:8000 ..work
sudo Cnpm install pm2 -g ..work
myname@my-vm:~/Parsoid$ sudo pm2 start bin/server.js ..work
sudo pm2 save ..work
sudo pm2 startup systemd ..work
reboot ....stopping pm2 time out(1min 30s)
starting ..work
Browser Access server_address:8000..Error:Deny Access
systemctl ..see (pm2-root.service active:failed,sub:failed, textcolor:red)
what happened
as well as(and)..
EnvironmentFile=- /etc/parsoid/parsoid.env
parsoid.env is where?
i cd to /etc not see ParsoidFolder so this file is where?
The optional EnvironmentFile directive above can specify the path to a file similar to the following template:"
What does it mean?I cannot understand by en-1(80% translator)

config.yaml and Gentoo instructions[edit]

Howdy. I just tried the instructions as written, but changed to install "system-wide" with "npm install -g". I used the simpler root-centric init script here, but found that server.js would not start. I straced the startup and found that node was looking for "/config.yaml". I placed config.yaml in the same directory as Parsoid's node files. How do I tell Node/Parsoid to use a different path to its config.yaml file? Can someone update the page to reflect this additional requirement? Thanks!

Parsoid as Windows Service[edit]

After getting Parsoid to work on Windows Server 2012 R2, running MW 1.31.1, has anyone managed to get Parsoid to automatically start when Windows start up? I've tried various methods, including: node-windows, NSSM, qckwinsvc, but I can't seem to get it working. I'm wondering if there are things specific to Parsoid compared to normal nodejs server, perhaps needing to execute from parsoid folder for the config.yaml file. theys (talk) 20:57, 9 May 2019 (UTC)