Topic on Talk:Parsoid

Error in the npm test for the parsoid folder?

6
Summary by Arlolra

Follow CentOS step-by-step

Pdwangchao (talkcontribs)

I installed the parsoid and run the "npm install", everything is OK. But when I use the npm test ,Error occoured. Anyone knows the reason or give some advise?

the log file is below:

0 info it worked if it ends with ok

1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'nsp' ]

2 info using npm@5.4.0

3 info using node@v6.11.2

4 verbose run-script [ 'prensp', 'nsp', 'postnsp' ]

5 info lifecycle parsoid@0.7.1~prensp: parsoid@0.7.1

6 info lifecycle parsoid@0.7.1~nsp: parsoid@0.7.1

7 verbose lifecycle parsoid@0.7.1~nsp: unsafe-perm in lifecycle true

8 verbose lifecycle parsoid@0.7.1~nsp: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/data/wwwroot/default/mediawiki/services/parsoid/node_modules/.bin:/usr/local/lib/node_modules/npm/bin/node-gyp-bin:/data/wwwroot/default/mediawiki/services/parsoid/node_modules/.bin:/usr/local/php/bin:/usr/local/apache/bin:/usr/local/mysql/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

9 verbose lifecycle parsoid@0.7.1~nsp: CWD: /data/wwwroot/default/mediawiki/services/parsoid

10 silly lifecycle parsoid@0.7.1~nsp: Args: [ '-c', 'nsp check' ]

11 silly lifecycle parsoid@0.7.1~nsp: Returned: code: 1  signal: null

12 info lifecycle parsoid@0.7.1~nsp: Failed to exec nsp script

13 verbose stack Error: parsoid@0.7.1 nsp: `nsp check`

13 verbose stack Exit status 1

13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:280:16)

13 verbose stack     at emitTwo (events.js:106:13)

13 verbose stack     at EventEmitter.emit (events.js:191:7)

13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)

13 verbose stack     at emitTwo (events.js:106:13)

13 verbose stack     at ChildProcess.emit (events.js:191:7)

13 verbose stack     at maybeClose (internal/child_process.js:891:16)

13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

14 verbose pkgid parsoid@0.7.1

15 verbose cwd /data/wwwroot/default/mediawiki/services/parsoid

16 verbose Linux 3.10.0-514.26.2.el7.x86_64

17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "nsp"

18 verbose node v6.11.2

19 verbose npm  v5.4.0

20 error code ELIFECYCLE

21 error errno 1

22 error parsoid@0.7.1 nsp: `nsp check`

22 error Exit status 1

23 error Failed at the parsoid@0.7.1 nsp script.

23 error This is probably not a problem with npm. There is likely additional logging output above.

24 verbose exit [ 1, true ]

Arlolra (talkcontribs)

Are there any warnings of missing packages when you run npm ls?

nsp check makes a request to nodesecurity.io, is that being rejected by a firewall or something>

Pdwangchao (talkcontribs)

Hi Arlolra

Thanks for your reply!

Yes, it exists.

when I use "npm ls", the output is below. I google for it but have no idea. when I run the "nsp check", nothing happened. Then I ran it again and the output is "bash: nsp: command not found..."

By the way, I install the parsoid by git clone method, and install the nodejs by yum method(v6.11.1) and then the make method(v6.11.2).

npm ls:

parsoid@0.7.1 /data/wwwroot/default/mediawiki/services/parsoid

├── alea@0.0.9

├── async@0.9.2

├─┬ babybird@0.0.1

│ ├── asap@2.0.5

│ └── is-arguments@1.0.2

├─┬ body-parser@1.17.1

│ ├── bytes@2.4.0

│ ├── content-type@1.0.2

│ ├─┬ debug@2.6.1

│ │ └── ms@0.7.2

│ ├── depd@1.1.0

│ ├─┬ http-errors@1.6.1

│ │ ├── depd@1.1.0 deduped

│ │ ├── inherits@2.0.3

│ │ ├── setprototypeof@1.0.3 deduped

│ │ └── statuses@1.3.1 deduped

│ ├── iconv-lite@0.4.15

│ ├─┬ on-finished@2.3.0

│ │ └── ee-first@1.1.1

│ ├── qs@6.4.0

│ ├─┬ raw-body@2.2.0

│ │ ├── bytes@2.4.0 deduped

│ │ ├── iconv-lite@0.4.15 deduped

│ │ └── unpipe@1.0.0 deduped

│ └─┬ type-is@1.6.15

│   ├── media-typer@0.3.0

│   └── mime-types@2.1.15 deduped

├─┬ chai@3.5.0

│ ├── assertion-error@1.0.2

│ ├─┬ deep-eql@0.1.3

│ │ └── type-detect@0.1.1

│ └── type-detect@1.0.0

├── colors@1.1.2

├─┬ compression@1.6.2

│ ├─┬ accepts@1.3.3

│ │ ├── mime-types@2.1.15 deduped

│ │ └── negotiator@0.6.1 deduped (git+https://github.com/arlolra/negotiator.git#0418ab4e9a665772b7e233564a4525c9d9a8ec3a)

│ ├── bytes@2.3.0

│ ├─┬ compressible@2.0.10

│ │ └── mime-db@1.27.0

│ ├─┬ debug@2.2.0

│ │ └── ms@0.7.1

│ ├── on-headers@1.0.1

│ └── vary@1.1.1

├─┬ connect-busboy@0.0.2

│ └─┬ busboy@0.2.14

│   ├─┬ dicer@0.2.5

│   │ ├── readable-stream@1.1.14 deduped

│   │ └── streamsearch@0.1.2

│   └─┬ readable-stream@1.1.14

│     ├── core-util-is@1.0.2

│     ├── inherits@2.0.3 deduped

│     ├── isarray@0.0.1

│     └── string_decoder@0.10.31

├── content-type@1.0.1 (git+https://github.com/wikimedia/content-type.git#47b2632d0a2ee79a7d67268e2f6621becd95d05b)

├── core-js@2.4.1

├─┬ coveralls@2.13.0

│ ├─┬ js-yaml@3.6.1

│ │ ├── argparse@1.0.9 deduped

│ │ └── esprima@2.7.3

│ ├── lcov-parse@0.0.10

│ ├── log-driver@1.2.5

│ ├── minimist@1.2.0

│ └─┬ request@2.79.0

│   ├── aws-sign2@0.6.0 deduped

│   ├── aws4@1.6.0 deduped

│   ├── caseless@0.11.0

│   ├── combined-stream@1.0.5 deduped

│   ├── extend@3.0.0 deduped

│   ├── forever-agent@0.6.1 deduped

│   ├── form-data@2.1.2 deduped

│   ├─┬ har-validator@2.0.6

│   │ ├── chalk@1.1.3 deduped

│   │ ├─┬ commander@2.9.0

│   │ │ └── graceful-readlink@1.0.1

│   │ ├── is-my-json-valid@2.16.0 deduped

│   │ └─┬ pinkie-promise@2.0.1

│   │   └── pinkie@2.0.4

│   ├── hawk@3.1.3 deduped

│   ├── http-signature@1.1.1 deduped

│   ├── is-typedarray@1.0.0 deduped

│   ├── isstream@0.1.2 deduped

│   ├── json-stringify-safe@5.0.1 deduped

│   ├── mime-types@2.1.15 deduped

│   ├── oauth-sign@0.8.2 deduped

│   ├── qs@6.3.2

│   ├── stringstream@0.0.5 deduped

│   ├── tough-cookie@2.3.2 deduped

│   ├── tunnel-agent@0.4.3

│   └── uuid@3.0.1

├── diff@1.4.0

├── domino@1.0.28

├── entities@1.1.1

├─┬ eslint@3.19.0

│ ├─┬ babel-code-frame@6.22.0

│ │ ├── chalk@1.1.3 deduped

│ │ ├── esutils@2.0.2 deduped

│ │ └── js-tokens@3.0.1

│ ├─┬ chalk@1.1.3

│ │ ├── ansi-styles@2.2.1

│ │ ├── escape-string-regexp@1.0.5

│ │ ├─┬ has-ansi@2.0.0

│ │ │ └── ansi-regex@2.1.1 deduped

│ │ ├─┬ strip-ansi@3.0.1

│ │ │ └── ansi-regex@2.1.1 deduped

│ │ └── supports-color@2.0.0

│ ├─┬ concat-stream@1.6.0

│ │ ├── inherits@2.0.3 deduped

│ │ ├─┬ readable-stream@2.2.9

│ │ │ ├── buffer-shims@1.0.0

│ │ │ ├── core-util-is@1.0.2 deduped

│ │ │ ├── inherits@2.0.3 deduped

│ │ │ ├── isarray@1.0.0

│ │ │ ├── process-nextick-args@1.0.7

│ │ │ ├─┬ string_decoder@1.0.0

│ │ │ │ └── buffer-shims@1.0.0 deduped

│ │ │ └── util-deprecate@1.0.2

│ │ └── typedarray@0.0.6

│ ├── debug@2.6.1 deduped

│ ├─┬ doctrine@2.0.0

│ │ ├── esutils@2.0.2 deduped

│ │ └── isarray@1.0.0

│ ├─┬ escope@3.6.0

│ │ ├─┬ es6-map@0.1.5

│ │ │ ├─┬ d@1.0.0

│ │ │ │ └── es5-ext@0.10.15 deduped

│ │ │ ├─┬ es5-ext@0.10.15

│ │ │ │ ├── es6-iterator@2.0.1 deduped

│ │ │ │ └── es6-symbol@3.1.1 deduped

│ │ │ ├─┬ es6-iterator@2.0.1

│ │ │ │ ├── d@1.0.0 deduped

│ │ │ │ ├── es5-ext@0.10.15 deduped

│ │ │ │ └── es6-symbol@3.1.1 deduped

│ │ │ ├─┬ es6-set@0.1.5

│ │ │ │ ├── d@1.0.0 deduped

│ │ │ │ ├── es5-ext@0.10.15 deduped

│ │ │ │ ├── es6-iterator@2.0.1 deduped

│ │ │ │ ├── es6-symbol@3.1.1 deduped

│ │ │ │ └── event-emitter@0.3.5 deduped

│ │ │ ├─┬ es6-symbol@3.1.1

│ │ │ │ ├── d@1.0.0 deduped

│ │ │ │ └── es5-ext@0.10.15 deduped

│ │ │ └─┬ event-emitter@0.3.5

│ │ │   ├── d@1.0.0 deduped

│ │ │   └── es5-ext@0.10.15 deduped

│ │ ├─┬ es6-weak-map@2.0.2

│ │ │ ├── d@1.0.0 deduped

│ │ │ ├── es5-ext@0.10.15 deduped

│ │ │ ├── es6-iterator@2.0.1 deduped

│ │ │ └── es6-symbol@3.1.1 deduped

│ │ ├─┬ esrecurse@4.1.0

│ │ │ ├── estraverse@4.1.1

│ │ │ └── object-assign@4.1.1 deduped

│ │ └── estraverse@4.2.0

│ ├─┬ espree@3.4.2

│ │ ├── acorn@5.0.3

│ │ └─┬ acorn-jsx@3.0.1

│ │   └── acorn@3.3.0

│ ├─┬ esquery@1.0.0

│ │ └── estraverse@4.2.0

│ ├── estraverse@4.2.0

│ ├── esutils@2.0.2

│ ├─┬ file-entry-cache@2.0.0

│ │ ├─┬ flat-cache@1.2.2

│ │ │ ├── circular-json@0.3.1

│ │ │ ├─┬ del@2.2.2

│ │ │ │ ├─┬ globby@5.0.0

│ │ │ │ │ ├─┬ array-union@1.0.2

│ │ │ │ │ │ └── array-uniq@1.0.3

│ │ │ │ │ ├── arrify@1.0.1

│ │ │ │ │ ├─┬ glob@7.1.1

│ │ │ │ │ │ ├── fs.realpath@1.0.0 deduped

│ │ │ │ │ │ ├── inflight@1.0.6 deduped

│ │ │ │ │ │ ├── inherits@2.0.3 deduped

│ │ │ │ │ │ ├── minimatch@3.0.3 deduped

│ │ │ │ │ │ ├── once@1.4.0 deduped

│ │ │ │ │ │ └── path-is-absolute@1.0.1 deduped

│ │ │ │ │ ├── object-assign@4.1.1 deduped

│ │ │ │ │ ├── pify@2.3.0 deduped

│ │ │ │ │ └── pinkie-promise@2.0.1 deduped

│ │ │ │ ├── is-path-cwd@1.0.0

│ │ │ │ ├─┬ is-path-in-cwd@1.0.0

│ │ │ │ │ └─┬ is-path-inside@1.0.0

│ │ │ │ │   └── path-is-inside@1.0.2 deduped

│ │ │ │ ├── object-assign@4.1.1 deduped

│ │ │ │ ├── pify@2.3.0

│ │ │ │ ├── pinkie-promise@2.0.1 deduped

│ │ │ │ └─┬ rimraf@2.6.1

│ │ │ │   └─┬ glob@7.1.1

│ │ │ │     ├── fs.realpath@1.0.0 deduped

│ │ │ │     ├── inflight@1.0.6 deduped

│ │ │ │     ├── inherits@2.0.3 deduped

│ │ │ │     ├── minimatch@3.0.3 deduped

│ │ │ │     ├── once@1.4.0 deduped

│ │ │ │     └── path-is-absolute@1.0.1 deduped

│ │ │ ├── graceful-fs@4.1.11 deduped

│ │ │ └─┬ write@0.2.1

│ │ │   └── mkdirp@0.5.1 deduped

│ │ └── object-assign@4.1.1

│ ├─┬ glob@7.1.1

│ │ ├── fs.realpath@1.0.0

│ │ ├─┬ inflight@1.0.6

│ │ │ ├── once@1.4.0 deduped

│ │ │ └── wrappy@1.0.2 deduped

│ │ ├── inherits@2.0.3 deduped

│ │ ├─┬ minimatch@3.0.3

│ │ │ └─┬ brace-expansion@1.1.6

│ │ │   ├── balanced-match@0.4.2

│ │ │   └── concat-map@0.0.1

│ │ ├── once@1.4.0 deduped

│ │ └── path-is-absolute@1.0.1

│ ├── globals@9.17.0

│ ├── ignore@3.2.7

│ ├── imurmurhash@0.1.4

│ ├─┬ inquirer@0.12.0

│ │ ├── ansi-escapes@1.4.0

│ │ ├── ansi-regex@2.1.1

│ │ ├── chalk@1.1.3 deduped

│ │ ├─┬ cli-cursor@1.0.2

│ │ │ └─┬ restore-cursor@1.0.1

│ │ │   ├── exit-hook@1.1.1

│ │ │   └── onetime@1.1.0

│ │ ├── cli-width@2.1.0

│ │ ├─┬ figures@1.7.0

│ │ │ ├── escape-string-regexp@1.0.5 deduped

│ │ │ └── object-assign@4.1.1 deduped

│ │ ├── lodash@4.17.4

│ │ ├─┬ readline2@1.0.1

│ │ │ ├── code-point-at@1.1.0 deduped

│ │ │ ├── is-fullwidth-code-point@1.0.0 deduped

│ │ │ └── mute-stream@0.0.5

│ │ ├─┬ run-async@0.1.0

│ │ │ └── once@1.4.0 deduped

│ │ ├── rx-lite@3.1.2

│ │ ├── string-width@1.0.2 deduped

│ │ ├── strip-ansi@3.0.1 deduped

│ │ └── through@2.3.8

│ ├─┬ is-my-json-valid@2.16.0

│ │ ├── generate-function@2.0.0

│ │ ├─┬ generate-object-property@1.2.0

│ │ │ └── is-property@1.0.2

│ │ ├── jsonpointer@4.0.1

│ │ └── xtend@4.0.1

│ ├─┬ is-resolvable@1.0.0

│ │ └── tryit@1.0.3

│ ├── js-yaml@3.8.3 deduped

│ ├─┬ json-stable-stringify@1.0.1

│ │ └── jsonify@0.0.0

│ ├─┬ levn@0.3.0

│ │ ├── prelude-ls@1.1.2

│ │ └─┬ type-check@0.3.2

│ │   └── prelude-ls@1.1.2 deduped

│ ├── lodash@4.17.4

│ ├─┬ mkdirp@0.5.1

│ │ └── minimist@0.0.8

│ ├── natural-compare@1.4.0

│ ├─┬ optionator@0.8.2

│ │ ├── deep-is@0.1.3

│ │ ├── fast-levenshtein@2.0.6

│ │ ├── levn@0.3.0 deduped

│ │ ├── prelude-ls@1.1.2 deduped

│ │ ├── type-check@0.3.2 deduped

│ │ └── wordwrap@1.0.0

│ ├── path-is-inside@1.0.2

│ ├── pluralize@1.2.1

│ ├── progress@1.1.8

│ ├─┬ require-uncached@1.0.3

│ │ ├─┬ caller-path@0.1.0

│ │ │ └── callsites@0.2.0

│ │ └── resolve-from@1.0.1

│ ├─┬ shelljs@0.7.7

│ │ ├── glob@7.1.1 deduped

│ │ ├── interpret@1.0.3

│ │ └─┬ rechoir@0.6.2

│ │   └── resolve@1.1.7 deduped

│ ├── strip-bom@3.0.0

│ ├── strip-json-comments@2.0.1

│ ├─┬ table@3.8.3

│ │ ├─┬ ajv@4.11.5

│ │ │ ├── co@4.6.0

│ │ │ └── json-stable-stringify@1.0.1 deduped

│ │ ├── ajv-keywords@1.5.1

│ │ ├── chalk@1.1.3 deduped

│ │ ├── lodash@4.17.4

│ │ ├── slice-ansi@0.0.4

│ │ └─┬ string-width@2.0.0

│ │   ├── is-fullwidth-code-point@2.0.0

│ │   └── strip-ansi@3.0.1 deduped

│ ├── text-table@0.2.0

│ └─┬ user-home@2.0.0

│   └── os-homedir@1.0.2

├── eslint-config-node-services@2.1.1

├─┬ eslint-plugin-jsdoc@3.0.2

│ ├─┬ comment-parser@0.4.0

│ │ └─┬ readable-stream@2.2.9

│ │   ├── buffer-shims@1.0.0 deduped

│ │   ├── core-util-is@1.0.2 deduped

│ │   ├── inherits@2.0.3 deduped

│ │   ├── isarray@1.0.0

│ │   ├── process-nextick-args@1.0.7 deduped

│ │   ├─┬ string_decoder@1.0.0

│ │   │ └── buffer-shims@1.0.0 deduped

│ │   └── util-deprecate@1.0.2 deduped

│ └── lodash@4.17.4

├─┬ eslint-plugin-json@1.2.0

│ └─┬ jshint@2.9.4

│   ├─┬ cli@1.0.1

│   │ ├── exit@0.1.2 deduped

│   │ └─┬ glob@7.1.1

│   │   ├── fs.realpath@1.0.0 deduped

│   │   ├── inflight@1.0.6 deduped

│   │   ├── inherits@2.0.3 deduped

│   │   ├── minimatch@3.0.3 deduped

│   │   ├── once@1.4.0 deduped

│   │   └── path-is-absolute@1.0.1 deduped

│   ├─┬ console-browserify@1.1.0

│   │ └── date-now@0.1.4

│   ├── exit@0.1.2

│   ├─┬ htmlparser2@3.8.3

│   │ ├── domelementtype@1.3.0

│   │ ├─┬ domhandler@2.3.0

│   │ │ └── domelementtype@1.3.0 deduped

│   │ ├─┬ domutils@1.5.1

│   │ │ ├─┬ dom-serializer@0.1.0

│   │ │ │ ├── domelementtype@1.1.3

│   │ │ │ └── entities@1.1.1 deduped

│   │ │ └── domelementtype@1.3.0 deduped

│   │ ├── entities@1.0.0

│   │ └── readable-stream@1.1.14 deduped

│   ├── lodash@3.7.0

│   ├── minimatch@3.0.3 deduped

│   ├── shelljs@0.3.0

│   └── strip-json-comments@1.0.4

├─┬ express@4.15.2

│ ├── accepts@1.3.3 deduped

│ ├── array-flatten@1.1.1

│ ├── content-disposition@0.5.2

│ ├── content-type@1.0.2

│ ├── cookie@0.3.1

│ ├── cookie-signature@1.0.6

│ ├── debug@2.6.1 deduped

│ ├── depd@1.1.0 deduped

│ ├── encodeurl@1.0.1

│ ├── escape-html@1.0.3

│ ├── etag@1.8.0

│ ├── finalhandler@1.0.1 deduped

│ ├── fresh@0.5.0

│ ├── merge-descriptors@1.0.1

│ ├── methods@1.1.2

│ ├── on-finished@2.3.0 deduped

│ ├── parseurl@1.3.1

│ ├── path-to-regexp@0.1.7

│ ├─┬ proxy-addr@1.1.4

│ │ ├── forwarded@0.1.0

│ │ └── ipaddr.js@1.3.0

│ ├── qs@6.4.0 deduped

│ ├── range-parser@1.2.0

│ ├─┬ send@0.15.1

│ │ ├── debug@2.6.1 deduped

│ │ ├── depd@1.1.0 deduped

│ │ ├── destroy@1.0.4

│ │ ├── encodeurl@1.0.1 deduped

│ │ ├── escape-html@1.0.3 deduped

│ │ ├── etag@1.8.0 deduped

│ │ ├── fresh@0.5.0 deduped

│ │ ├── http-errors@1.6.1 deduped

│ │ ├── mime@1.3.4

│ │ ├── ms@0.7.2 deduped

│ │ ├── on-finished@2.3.0 deduped

│ │ ├── range-parser@1.2.0 deduped

│ │ └── statuses@1.3.1 deduped

│ ├─┬ serve-static@1.12.1

│ │ ├── encodeurl@1.0.1 deduped

│ │ ├── escape-html@1.0.3 deduped

│ │ ├── parseurl@1.3.1 deduped

│ │ └── send@0.15.1 deduped

│ ├── setprototypeof@1.0.3

│ ├── statuses@1.3.1

│ ├── type-is@1.6.15 deduped

│ ├── utils-merge@1.0.0

│ └── vary@1.1.1 deduped

├─┬ express-handlebars@3.0.0

│ ├─┬ glob@6.0.4

│ │ ├── inflight@1.0.6 deduped

│ │ ├── inherits@2.0.3 deduped

│ │ ├── minimatch@3.0.3 deduped

│ │ ├── once@1.4.0 deduped

│ │ └── path-is-absolute@1.0.1 deduped

│ ├── graceful-fs@4.1.11

│ ├─┬ handlebars@4.0.6

│ │ ├── async@1.5.2

│ │ ├─┬ optimist@0.6.1

│ │ │ ├── minimist@0.0.10

│ │ │ └── wordwrap@0.0.3

│ │ ├─┬ source-map@0.4.4

│ │ │ └── amdefine@1.0.1

│ │ └── UNMET OPTIONAL DEPENDENCY uglify-js@^2.6

│ ├─┬ object.assign@4.0.4

│ │ ├─┬ define-properties@1.1.2

│ │ │ ├── foreach@2.0.5

│ │ │ └── object-keys@1.0.11 deduped

│ │ ├── function-bind@1.1.0

│ │ └── object-keys@1.0.11

│ └─┬ promise@7.1.1

│   └── asap@2.0.5 deduped

├─┬ finalhandler@1.0.1

│ ├─┬ debug@2.6.3

│ │ └── ms@0.7.2 deduped

│ ├── encodeurl@1.0.1 deduped

│ ├── escape-html@1.0.3 deduped

│ ├── on-finished@2.3.0 deduped

│ ├── parseurl@1.3.1 deduped

│ ├── statuses@1.3.1 deduped

│ └── unpipe@1.0.0

├─┬ istanbul@0.4.5

│ ├── abbrev@1.0.9

│ ├── async@1.5.2

│ ├─┬ escodegen@1.8.1

│ │ ├── esprima@2.7.3

│ │ ├── estraverse@1.9.3

│ │ ├── esutils@2.0.2 deduped

│ │ ├── optionator@0.8.2 deduped

│ │ └── source-map@0.4.4 deduped

│ ├── esprima@2.7.3

│ ├─┬ glob@5.0.15

│ │ ├── inflight@1.0.6 deduped

│ │ ├── inherits@2.0.3 deduped

│ │ ├── minimatch@3.0.3 deduped

│ │ ├── once@1.4.0 deduped

│ │ └── path-is-absolute@1.0.1 deduped

│ ├── handlebars@4.0.6 deduped

│ ├── js-yaml@3.8.3 deduped

│ ├── mkdirp@0.5.1 deduped

│ ├─┬ nopt@3.0.6

│ │ └── abbrev@1.0.9 deduped

│ ├─┬ once@1.4.0

│ │ └── wrappy@1.0.2

│ ├── resolve@1.1.7

│ ├─┬ supports-color@3.2.3

│ │ └── has-flag@1.0.0

│ ├─┬ which@1.2.14

│ │ └── isexe@2.0.0

│ └── wordwrap@1.0.0

├─┬ js-yaml@3.8.3

│ ├─┬ argparse@1.0.9

│ │ └── sprintf-js@1.0.3

│ └── esprima@3.1.3

├── mediawiki-title@0.6.3

├─┬ mocha@2.5.3

│ ├── commander@2.3.0

│ ├─┬ debug@2.2.0

│ │ └── ms@0.7.1

│ ├── diff@1.4.0 deduped

│ ├── escape-string-regexp@1.0.2

│ ├─┬ glob@3.2.11

│ │ ├── inherits@2.0.3 deduped

│ │ └─┬ minimatch@0.3.0

│ │   ├── lru-cache@2.7.3

│ │   └── sigmund@1.0.1

│ ├── growl@1.9.2

│ ├─┬ jade@0.26.3

│ │ ├── commander@0.6.1

│ │ └── mkdirp@0.3.0

│ ├── mkdirp@0.5.1 deduped

│ ├── supports-color@1.2.0

│ └── to-iso-string@0.0.2

├── negotiator@0.6.1 (git+https://github.com/arlolra/negotiator.git#0418ab4e9a665772b7e233564a4525c9d9a8ec3a)

├─┬ nock@8.2.1

│ ├── chai@3.5.0 deduped

│ ├── debug@2.6.1 deduped

│ ├── deep-equal@1.0.1

│ ├── json-stringify-safe@5.0.1

│ ├── lodash@4.9.0

│ ├── mkdirp@0.5.1 deduped

│ ├── propagate@0.4.0

│ └── qs@6.4.0 deduped

├── node-uuid@1.4.8

├─┬ nsp@2.6.3

│ ├─┬ chalk@1.1.3

│ │ ├── ansi-styles@2.2.1

│ │ ├── escape-string-regexp@1.0.5

│ │ ├─┬ has-ansi@2.0.0

│ │ │ └── ansi-regex@2.0.0

│ │ ├─┬ strip-ansi@3.0.1

│ │ │ └── ansi-regex@2.0.0

│ │ └── supports-color@2.0.0

│ ├─┬ cli-table@0.3.1

│ │ └── colors@1.0.3

│ ├── cvss@1.0.1

│ ├─┬ https-proxy-agent@1.0.0

│ │ ├─┬ agent-base@2.0.1

│ │ │ ├── extend@3.0.0 deduped

│ │ │ └── semver@5.0.3

│ │ ├─┬ debug@2.2.0

│ │ │ └── ms@0.7.1

│ │ └── extend@3.0.0

│ ├─┬ joi@6.10.1

│ │ ├── hoek@2.16.3

│ │ ├── isemail@1.2.0

│ │ ├── moment@2.12.0

│ │ └─┬ topo@1.1.0

│ │   └── hoek@2.16.3 deduped

│ ├── nodesecurity-npm-utils@5.0.0

│ ├── path-is-absolute@1.0.0

│ ├─┬ rc@1.1.6

│ │ ├── deep-extend@0.4.1

│ │ ├── ini@1.3.4

│ │ ├── minimist@1.2.0

│ │ └── strip-json-comments@1.0.4

│ ├── semver@5.1.0

│ ├─┬ subcommand@2.0.3

│ │ ├── cliclopts@1.1.1

│ │ ├─┬ debug@2.2.0

│ │ │ └── ms@0.7.1

│ │ ├── minimist@1.2.0

│ │ └── xtend@4.0.1

│ └─┬ wreck@6.3.0

│   ├─┬ boom@2.10.1

│   │ └── hoek@2.16.3 deduped

│   └── hoek@2.16.3

├── pegjs@0.8.0 (git+https://github.com/tstarling/pegjs.git#36d584bd7bbc564c86c058c5dfe8053b1fe1d584)

├─┬ prfun@2.1.4

│ └── core-js@2.4.1 deduped

├─┬ request@2.81.0

│ ├── aws-sign2@0.6.0

│ ├── aws4@1.6.0

│ ├── caseless@0.12.0

│ ├─┬ combined-stream@1.0.5

│ │ └── delayed-stream@1.0.0

│ ├── extend@3.0.0

│ ├── forever-agent@0.6.1

│ ├─┬ form-data@2.1.2

│ │ ├── asynckit@0.4.0

│ │ ├── combined-stream@1.0.5 deduped

│ │ └── mime-types@2.1.15 deduped

│ ├─┬ har-validator@4.2.1

│ │ ├── ajv@4.11.5 deduped

│ │ └── har-schema@1.0.5

│ ├─┬ hawk@3.1.3

│ │ ├─┬ boom@2.10.1

│ │ │ └── hoek@2.16.3 deduped

│ │ ├─┬ cryptiles@2.0.5

│ │ │ └── boom@2.10.1 deduped

│ │ ├── hoek@2.16.3

│ │ └─┬ sntp@1.0.9

│ │   └── hoek@2.16.3 deduped

│ ├─┬ http-signature@1.1.1

│ │ ├── assert-plus@0.2.0

│ │ ├─┬ jsprim@1.4.0

│ │ │ ├── assert-plus@1.0.0

│ │ │ ├── extsprintf@1.0.2

│ │ │ ├── json-schema@0.2.3

│ │ │ └─┬ verror@1.3.6

│ │ │   └── extsprintf@1.0.2 deduped

│ │ └─┬ sshpk@1.11.0

│ │   ├── asn1@0.2.3

│ │   ├── assert-plus@1.0.0

│ │   ├── UNMET OPTIONAL DEPENDENCY bcrypt-pbkdf@^1.0.0

│ │   ├─┬ dashdash@1.14.1

│ │   │ └── assert-plus@1.0.0

│ │   ├── UNMET OPTIONAL DEPENDENCY ecc-jsbn@~0.1.1

│ │   ├─┬ getpass@0.1.6

│ │   │ └── assert-plus@1.0.0

│ │   ├── UNMET OPTIONAL DEPENDENCY jodid25519@^1.0.0

│ │   ├── UNMET OPTIONAL DEPENDENCY jsbn@~0.1.0

│ │   └── UNMET OPTIONAL DEPENDENCY tweetnacl@~0.14.0

│ ├── is-typedarray@1.0.0

│ ├── isstream@0.1.2

│ ├── json-stringify-safe@5.0.1 deduped

│ ├─┬ mime-types@2.1.15

│ │ └── mime-db@1.27.0 deduped

│ ├── oauth-sign@0.8.2

│ ├── performance-now@0.2.0

│ ├── qs@6.4.0 deduped

│ ├── safe-buffer@5.0.1

│ ├── stringstream@0.0.5

│ ├─┬ tough-cookie@2.3.2

│ │ └── punycode@1.4.1

│ ├─┬ tunnel-agent@0.6.0

│ │ └── safe-buffer@5.0.1 deduped

│ └── uuid@3.0.1

├── semver@5.3.0

├─┬ serve-favicon@2.4.2

│ ├── etag@1.8.0 deduped

│ ├── fresh@0.5.0 deduped

│ ├── ms@1.0.0

│ └── parseurl@1.3.1 deduped

├─┬ service-runner@2.2.5

│ ├── bluebird@3.5.0

│ ├─┬ bunyan@1.8.10

│ │ ├── UNMET OPTIONAL DEPENDENCY dtrace-provider@~0.8

│ │ ├── UNMET OPTIONAL DEPENDENCY moment@^2.10.6

│ │ ├── UNMET OPTIONAL DEPENDENCY mv@~2

│ │ └── UNMET OPTIONAL DEPENDENCY safe-json-stringify@~1

│ ├── bunyan-syslog-udp@0.1.0

│ ├─┬ dnscache@1.0.1

│ │ ├── asap@2.0.5 deduped

│ │ └─┬ lodash.clone@4.3.2

│ │   └── lodash._baseclone@4.5.7

│ ├── extend@3.0.0 deduped

│ ├─┬ gelf-stream@1.1.1

│ │ └── gelfling@0.3.1

│ ├── hot-shots@4.4.0

│ ├── js-yaml@3.8.3 deduped

│ ├─┬ limitation@0.2.0

│ │ ├── bluebird@3.5.0 deduped

│ │ ├─┬ kad@1.3.6 (git+https://github.com/gwicke/kad.git#936c91652d757ea6f9dd30e44698afb0daaa1d17)

│ │ │ ├── async@0.9.2 deduped

│ │ │ ├── clarinet@0.11.0

│ │ │ ├── colors@1.1.2 deduped

│ │ │ ├── hat@0.0.3

│ │ │ ├─┬ kad-fs@0.0.4

│ │ │ │ └─┬ readable-stream@2.2.6

│ │ │ │   ├── buffer-shims@1.0.0 deduped

│ │ │ │   ├── core-util-is@1.0.2 deduped

│ │ │ │   ├── inherits@2.0.3 deduped

│ │ │ │   ├── isarray@1.0.0

│ │ │ │   ├── process-nextick-args@1.0.7 deduped

│ │ │ │   ├── string_decoder@0.10.31 deduped

│ │ │ │   └── util-deprecate@1.0.2 deduped

│ │ │ ├─┬ kad-localstorage@0.0.7

│ │ │ │ └── dom-storage@2.0.2

│ │ │ ├─┬ kad-memstore@0.0.1

│ │ │ │ └─┬ readable-stream@2.2.6

│ │ │ │   ├── buffer-shims@1.0.0 deduped

│ │ │ │   ├── core-util-is@1.0.2 deduped

│ │ │ │   ├── inherits@2.0.3 deduped

│ │ │ │   ├── isarray@1.0.0

│ │ │ │   ├── process-nextick-args@1.0.7 deduped

│ │ │ │   ├── string_decoder@0.10.31 deduped

│ │ │ │   └── util-deprecate@1.0.2 deduped

│ │ │ ├── lodash@3.10.1

│ │ │ ├── merge@1.2.0

│ │ │ ├── ms@0.7.2 deduped

│ │ │ └─┬ msgpack5@3.4.1

│ │ │   ├─┬ bl@1.2.0

│ │ │   │ └─┬ readable-stream@2.2.6

│ │ │   │   ├── buffer-shims@1.0.0 deduped

│ │ │   │   ├── core-util-is@1.0.2 deduped

│ │ │   │   ├── inherits@2.0.3 deduped

│ │ │   │   ├── isarray@1.0.0

│ │ │   │   ├── process-nextick-args@1.0.7 deduped

│ │ │   │   ├── string_decoder@0.10.31 deduped

│ │ │   │   └── util-deprecate@1.0.2 deduped

│ │ │   ├── inherits@2.0.3 deduped

│ │ │   └─┬ readable-stream@2.2.6

│ │ │     ├── buffer-shims@1.0.0 deduped

│ │ │     ├── core-util-is@1.0.2 deduped

│ │ │     ├── inherits@2.0.3 deduped

│ │ │     ├── isarray@1.0.0

│ │ │     ├── process-nextick-args@1.0.7 deduped

│ │ │     ├── string_decoder@0.10.31 deduped

│ │ │     └── util-deprecate@1.0.2 deduped

│ │ └─┬ readable-stream@2.2.6

│ │   ├── buffer-shims@1.0.0 deduped

│ │   ├── core-util-is@1.0.2 deduped

│ │   ├── inherits@2.0.3 deduped

│ │   ├── isarray@1.0.0

│ │   ├── process-nextick-args@1.0.7 deduped

│ │   ├── string_decoder@0.10.31 deduped

│ │   └── util-deprecate@1.0.2 deduped

│ ├── semver@5.3.0 deduped

│ └── yargs@6.6.0 deduped

├── simplediff@0.1.1

├─┬ supertest@1.2.0

│ ├── methods@1.1.2 deduped

│ └─┬ superagent@1.8.5

│   ├── component-emitter@1.2.1

│   ├── cookiejar@2.0.6

│   ├── debug@2.6.1 deduped

│   ├── extend@3.0.0 deduped

│   ├─┬ form-data@1.0.0-rc3

│   │ ├── async@1.5.2

│   │ ├── combined-stream@1.0.5 deduped

│   │ └── mime-types@2.1.15 deduped

│   ├── formidable@1.0.17

│   ├── methods@1.1.2 deduped

│   ├── mime@1.3.4 deduped

│   ├── qs@2.3.3

│   ├─┬ readable-stream@1.0.27-1

│   │ ├── core-util-is@1.0.2 deduped

│   │ ├── inherits@2.0.3 deduped

│   │ ├── isarray@0.0.1 deduped

│   │ └── string_decoder@0.10.31 deduped

│   └── reduce-component@1.0.1

└─┬ yargs@6.6.0

  ├── camelcase@3.0.0

  ├─┬ cliui@3.2.0

  │ ├── string-width@1.0.2 deduped

  │ ├── strip-ansi@3.0.1 deduped

  │ └─┬ wrap-ansi@2.1.0

  │   ├── string-width@1.0.2 deduped

  │   └── strip-ansi@3.0.1 deduped

  ├── decamelize@1.2.0

  ├── get-caller-file@1.0.2

  ├─┬ os-locale@1.4.0

  │ └─┬ lcid@1.0.0

  │   └── invert-kv@1.0.0

  ├─┬ read-pkg-up@1.0.1

  │ ├─┬ find-up@1.1.2

  │ │ ├─┬ path-exists@2.1.0

  │ │ │ └── pinkie-promise@2.0.1 deduped

  │ │ └── pinkie-promise@2.0.1 deduped

  │ └─┬ read-pkg@1.1.0

  │   ├─┬ load-json-file@1.1.0

  │   │ ├── graceful-fs@4.1.11 deduped

  │   │ ├─┬ parse-json@2.2.0

  │   │ │ └─┬ error-ex@1.3.1

  │   │ │   └── is-arrayish@0.2.1

  │   │ ├── pify@2.3.0 deduped

  │   │ ├── pinkie-promise@2.0.1 deduped

  │   │ └─┬ strip-bom@2.0.0

  │   │   └── is-utf8@0.2.1

  │   ├─┬ normalize-package-data@2.3.6

  │   │ ├── hosted-git-info@2.4.1

  │   │ ├─┬ is-builtin-module@1.0.0

  │   │ │ └── builtin-modules@1.1.1

  │   │ ├── semver@5.3.0 deduped

  │   │ └─┬ validate-npm-package-license@3.0.1

  │   │   ├─┬ spdx-correct@1.0.2

  │   │   │ └── spdx-license-ids@1.2.2

  │   │   └── spdx-expression-parse@1.0.4

  │   └─┬ path-type@1.1.0

  │     ├── graceful-fs@4.1.11 deduped

  │     ├── pify@2.3.0 deduped

  │     └── pinkie-promise@2.0.1 deduped

  ├── require-directory@2.1.1

  ├── require-main-filename@1.0.1

  ├── set-blocking@2.0.0

  ├─┬ string-width@1.0.2

  │ ├── code-point-at@1.1.0

  │ ├─┬ is-fullwidth-code-point@1.0.0

  │ │ └── number-is-nan@1.0.1

  │ └── strip-ansi@3.0.1 deduped

  ├── which-module@1.0.0

  ├── y18n@3.2.1

  └─┬ yargs-parser@4.2.1

    └── camelcase@3.0.0 deduped

Pdwangchao (talkcontribs)
Benn2003 (talkcontribs)
== English ==

According to this website https://www.centos.org/forums/viewtopic.php?f=47&t=53223&p=225372#p225372 all commands were executed.

The following should be set in the LocalSettings.php file from MediaWiki:

# Namespces for VE

        $ wgVisualEditorNamespaces = array_merge (

         $ WgContentNamespaces,          array (*) );

The following error is logged when the website is accessed:

FastCGI sent in stderr: "PHP message: PHP Parse error: syntax error, unexpected '*', expecting ')' in /usr/share/mediawiki/mediawiki-1.34.0/LocalSettings.php on line 130"

Line 130 specifies "array (*)".

Can anyone help?

== German ==

Gemäß dieser Webseite https://www.centos.org/forums/viewtopic.php?f=47&t=53223&p=225372#p225372 wurden alle Befehle ausgeführt.

In der Datei LocalSettings.php vom MediaWiki soll folgendes eingestellt werden:

# Namespces for VE

       $wgVisualEditorNamespaces = array_merge(

        $wgContentNamespaces,         array( * ) );

Beim Aufruf der Webseite wird folgender Fehler protokolliert:

FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected '*', expecting ')' in /usr/share/mediawiki/mediawiki-1.34.0/LocalSettings.php on line 130"

In Zeile 130 ist "array( * )" angegeben.

Kann jemand weiterhelfen?

Arlolra (talkcontribs)

$wgVisualEditorNamespaces was the config for which namespaces to enable VE.

The default was array( NS_MAIN ), so you can try that.

I imagine the * was just a stand in for all of them. It's broken syntax.