jsreport v2 npm dependency warnings and errors



  • Hi,
    I was so excited to upgrade to jsreport v2. However, I got these peer dependency warnings:
    npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
    npm WARN pdfjs-dist@2.0.457 requires a peer of webpack@^2.0.0 || ^3.0.0 but none is installed. You must install peer dependencies yourself.
    npm WARN schema-utils@0.4.5 requires a peer of webpack@^2.0.0 || ^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
    npm WARN worker-loader@1.1.1 requires a peer of webpack@^2.0.0 || ^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.

    Does v2 require ajv and webpack@^3.0.0 ?

    If I try npm list --depth=0, there are even more npm ERR messages:
    jsreport-server@ /media/data/myjsreport
    ├── jsreport@2.0.0
    └── jsreport-phantom-pdf@2.0.1

    npm ERR! missing: mkdirp@0.5.1, required by node-pre-gyp@0.9.1
    npm ERR! missing: minimist@0.0.8, required by mkdirp@0.5.1
    npm ERR! missing: minimatch@3.0.4, required by ignore-walk@3.0.1
    npm ERR! missing: brace-expansion@1.1.11, required by minimatch@3.0.4
    npm ERR! missing: balanced-match@1.0.0, required by brace-expansion@1.1.11
    npm ERR! missing: concat-map@0.0.1, required by brace-expansion@1.1.11
    npm ERR! missing: console-control-strings@1.1.0, required by npmlog@4.1.2
    npm ERR! missing: inherits@2.0.3, required by readable-stream@2.3.6
    npm ERR! missing: safe-buffer@5.1.1, required by readable-stream@2.3.6
    npm ERR! missing: safe-buffer@5.1.1, required by string_decoder@1.1.1
    npm ERR! missing: console-control-strings@1.1.0, required by gauge@2.7.4
    npm ERR! missing: string-width@1.0.2, required by gauge@2.7.4
    npm ERR! missing: strip-ansi@3.0.1, required by gauge@2.7.4
    npm ERR! missing: code-point-at@1.1.0, required by string-width@1.0.2
    npm ERR! missing: is-fullwidth-code-point@1.0.0, required by string-width@1.0.2
    npm ERR! missing: strip-ansi@3.0.1, required by string-width@1.0.2
    npm ERR! missing: number-is-nan@1.0.1, required by is-fullwidth-code-point@1.0.0
    npm ERR! missing: ansi-regex@2.1.1, required by strip-ansi@3.0.1
    npm ERR! missing: string-width@1.0.2, required by wide-align@1.1.2
    npm ERR! missing: inherits@2.0.3, required by glob@7.1.2
    npm ERR! missing: minimatch@3.0.4, required by glob@7.1.2
    npm ERR! missing: once@1.4.0, required by glob@7.1.2
    npm ERR! missing: once@1.4.0, required by inflight@1.0.6
    npm ERR! missing: wrappy@1.0.2, required by inflight@1.0.6
    npm ERR! missing: wrappy@1.0.2, required by once@1.4.0
    npm ERR! missing: minipass@2.2.4, required by tar@4.4.1
    npm ERR! missing: mkdirp@0.5.1, required by tar@4.4.1
    npm ERR! missing: safe-buffer@5.1.1, required by tar@4.4.1
    npm ERR! missing: yallist@3.0.2, required by tar@4.4.1
    npm ERR! missing: minipass@2.2.4, required by fs-minipass@1.2.5
    npm ERR! missing: safe-buffer@5.1.1, required by minipass@2.2.4
    npm ERR! missing: yallist@3.0.2, required by minipass@2.2.4
    npm ERR! missing: minipass@2.2.4, required by minizlib@1.1.0
    npm ERR! peer dep missing: webpack@^2.0.0 || ^3.0.0, required by pdfjs-dist@2.0.457
    npm ERR! peer dep missing: webpack@^2.0.0 || ^3.0.0 || ^4.0.0, required by worker-loader@1.1.1
    npm ERR! peer dep missing: webpack@^2.0.0 || ^3.0.0 || ^4.0.0, required by schema-utils@0.4.5
    npm ERR! peer dep missing: ajv@^6.0.0, required by ajv-keywords@3.2.0

    Please any one help how to resolve these.

    Note: I am testing in: Ubuntu 14.0.4 LTS and Ubuntu 18 server LTS. Nodejs: 8.10/8.11, npm: 6.0.1

    Thanks.
    Trung


  • administrators

    hi! are the warnings not letting you install jsreport? if no, you can ignore the warnings. however at least for me npm do this when i update packages, maybe it is better if you remove your node_modules completely and run npm install, fresh again



  • Hi! I try as you mentioned. Now it does not show "requires peer of.." warnings but with npm list --depth=0 it still showing:
    jsreport-server@ /media/data/myjsreport
    ├── jsreport@2.0.0
    └── jsreport-phantom-pdf@2.0.1

    npm ERR! missing: mkdirp@0.5.1, required by node-pre-gyp@0.9.1
    npm ERR! missing: minimist@0.0.8, required by mkdirp@0.5.1
    npm ERR! missing: minimatch@3.0.4, required by ignore-walk@3.0.1
    npm ERR! missing: brace-expansion@1.1.11, required by minimatch@3.0.4
    npm ERR! missing: balanced-match@1.0.0, required by brace-expansion@1.1.11
    npm ERR! missing: concat-map@0.0.1, required by brace-expansion@1.1.11
    npm ERR! missing: console-control-strings@1.1.0, required by npmlog@4.1.2
    npm ERR! missing: inherits@2.0.3, required by readable-stream@2.3.6
    npm ERR! missing: safe-buffer@5.1.1, required by readable-stream@2.3.6
    npm ERR! missing: safe-buffer@5.1.1, required by string_decoder@1.1.1
    npm ERR! missing: console-control-strings@1.1.0, required by gauge@2.7.4
    npm ERR! missing: string-width@1.0.2, required by gauge@2.7.4
    npm ERR! missing: strip-ansi@3.0.1, required by gauge@2.7.4
    npm ERR! missing: code-point-at@1.1.0, required by string-width@1.0.2
    npm ERR! missing: is-fullwidth-code-point@1.0.0, required by string-width@1.0.2
    npm ERR! missing: strip-ansi@3.0.1, required by string-width@1.0.2
    npm ERR! missing: number-is-nan@1.0.1, required by is-fullwidth-code-point@1.0.0
    npm ERR! missing: ansi-regex@2.1.1, required by strip-ansi@3.0.1
    npm ERR! missing: string-width@1.0.2, required by wide-align@1.1.2
    npm ERR! missing: inherits@2.0.3, required by glob@7.1.2
    npm ERR! missing: minimatch@3.0.4, required by glob@7.1.2
    npm ERR! missing: once@1.4.0, required by glob@7.1.2
    npm ERR! missing: once@1.4.0, required by inflight@1.0.6
    npm ERR! missing: wrappy@1.0.2, required by inflight@1.0.6
    npm ERR! missing: wrappy@1.0.2, required by once@1.4.0
    npm ERR! missing: minipass@2.2.4, required by tar@4.4.1
    npm ERR! missing: mkdirp@0.5.1, required by tar@4.4.1
    npm ERR! missing: safe-buffer@5.1.1, required by tar@4.4.1
    npm ERR! missing: yallist@3.0.2, required by tar@4.4.1
    npm ERR! missing: minipass@2.2.4, required by fs-minipass@1.2.5
    npm ERR! missing: safe-buffer@5.1.1, required by minipass@2.2.4
    npm ERR! missing: yallist@3.0.2, required by minipass@2.2.4
    npm ERR! missing: minipass@2.2.4, required by minizlib@1.1.0
    npm ERR! peer dep missing: webpack@^2.0.0 || ^3.0.0, required by pdfjs-dist@2.0.457
    npm ERR! peer dep missing: webpack@^2.0.0 || ^3.0.0 || ^4.0.0, required by worker-loader@1.1.1
    npm ERR! peer dep missing: webpack@^2.0.0 || ^3.0.0 || ^4.0.0, required by schema-utils@0.4.5
    npm ERR! peer dep missing: ajv@^6.0.0, required by ajv-keywords@3.2.0
    npm ERR! invalid: async@2.6.0 /media/data/myjsreport/node_modules/easy-zip/node_modules/async

    Will these be ignored or need to be resolved as well?


  • administrators

    the most important thing is that the server works for you, is it important for you that npm list --depth=0 not show any error? when i work on big projects that command always show me some warnings or errors, the way npm works is tricky so who knows what actually npm list --depth=0 checks under the hood



  • It is good as long as It will not affect jsreport's heath. I am willing to learn if anyone can explain why npm list --depth=0 emits those error messages.
    Thanks a lot.


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.