Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails when running istanbul report #954

Open
MaxisTekfield opened this issue Feb 27, 2023 · 1 comment
Open

Fails when running istanbul report #954

MaxisTekfield opened this issue Feb 27, 2023 · 1 comment

Comments

@MaxisTekfield
Copy link

When running npx istanbul report --dir coverage --include input/**/coverage-final.json lcov, it fails.
Could someone help me please.

E:\xxx>npx istanbul report --dir coverage --include input/**/coverage-final.json lcov
E:\xxx\node_modules\istanbul\lib\util\file-writer.js:66
    this.queue = async.queue(this.processFile.bind(this), 20);
                       ^

TypeError: async.queue is not a function
    at new AsyncFileWriter (E:\xxx\node_modules\istanbul\lib\util\file-writer.js:66:24)
    at new FileWriter (E:\xxx\node_modules\istanbul\lib\util\file-writer.js:134:51)
    at LcovOnlyReport.writeReport (E:\xxx\node_modules\istanbul\lib\report\lcovonly.js:91:42)
    at LcovReport.writeReport (E:\xxx\node_modules\istanbul\lib\report\lcov.js:54:19)
    at E:\xxx\node_modules\istanbul\lib\reporter.js:93:20
    at Array.forEach (<anonymous>)
    at Reporter.write (E:\xxx\node_modules\istanbul\lib\reporter.js:87:30)
    at E:\xxx\node_modules\istanbul\lib\command\report.js:113:22
    at E:\xxx\node_modules\istanbul\lib\util\file-matcher.js:39:20
    at f (E:\xxx\node_modules\once\once.js:25:25)

E:\xxx>npm list
[email protected]
| E:\xxx
| xxx
`-- [email protected]
  | Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale
  | git://github.com/gotwarlost/istanbul.git
  | https://github.com/gotwarlost/istanbul#readme
  +-- [email protected]
  |   Like ruby's abbrev module, but in js
  |   git+ssh://[email protected]/isaacs/abbrev-js.git
  |   https://github.com/isaacs/abbrev-js#readme
  +-- [email protected]
  |   2KB immutable date time library alternative to Moment.js with the same modern API
  |   git+https://github.com/iamkun/dayjs.git
  |   https://day.js.org
  +-- [email protected]
  | | ECMAScript code generator
  | | git+ssh://[email protected]/estools/escodegen.git
  | | http://github.com/estools/escodegen
  | +-- [email protected] deduped
  | |   ECMAScript parsing infrastructure for multipurpose analysis
  | |   git+https://github.com/jquery/esprima.git
  | |   http://esprima.org
  | +-- [email protected]
  | |   ECMAScript JS AST traversal functions
  | |   git+ssh://[email protected]/estools/estraverse.git
  | |   https://github.com/estools/estraverse
  | +-- [email protected]
  | |   utility box for ECMAScript language tools
  | |   git+ssh://[email protected]/estools/esutils.git
  | |   https://github.com/estools/esutils
  | +-- [email protected]
  | | | option parsing and help generation
  | | | git://github.com/gkz/optionator.git
  | | | https://github.com/gkz/optionator
  | | +-- [email protected]
  | | |   node's assert.deepEqual algorithm except for NaN being equal to NaN
  | | |   git+ssh://[email protected]/thlorenz/deep-is.git
  | | |   https://github.com/thlorenz/deep-is#readme
  | | +-- [email protected]
  | | |   Efficient implementation of Levenshtein algorithm  with locale-specific collator support.
  | | |   git+https://github.com/hiddentao/fast-levenshtein.git
  | | |   https://github.com/hiddentao/fast-levenshtein#readme
  | | +-- [email protected]
  | | | | Light ECMAScript (JavaScript) Value Notation - human written, concise, typed, flexible
  | | | | git://github.com/gkz/levn.git
  | | | | https://github.com/gkz/levn
  | | | +-- [email protected] deduped
  | | | |   prelude.ls is a functionally oriented utility library. It is powerful and flexible. Almost all of its functions are curried. It is written in, and is the recommended base library for, LiveScript.
  | | | |   git://github.com/gkz/prelude-ls.git
  | | | |   http://preludels.com
  | | | `-- [email protected] deduped
  | | |     type-check allows you to check the types of JavaScript values at runtime with a Haskell like type syntax.
  | | |     git://github.com/gkz/type-check.git
  | | |     https://github.com/gkz/type-check
  | | +-- [email protected]
  | | |   prelude.ls is a functionally oriented utility library. It is powerful and flexible. Almost all of its functions are curried. It is written in, and is the recommended base library for, LiveScript.
  | | |   git://github.com/gkz/prelude-ls.git
  | | |   http://preludels.com
  | | +-- [email protected]
  | | | | type-check allows you to check the types of JavaScript values at runtime with a Haskell like type syntax.
  | | | | git://github.com/gkz/type-check.git
  | | | | https://github.com/gkz/type-check
  | | | `-- [email protected] deduped
  | | |     prelude.ls is a functionally oriented utility library. It is powerful and flexible. Almost all of its functions are curried. It is written in, and is the recommended base library for, LiveScript.
  | | |     git://github.com/gkz/prelude-ls.git
  | | |     http://preludels.com
  | | `-- [email protected]
  | |     Wrap words to a specified length.
  | |     git+https://github.com/jonschlinkert/word-wrap.git
  | |     https://github.com/jonschlinkert/word-wrap
  | `-- [email protected]
  |   | Generates and consumes source maps
  |   | git+ssh://[email protected]/mozilla/source-map.git
  |   | https://github.com/mozilla/source-map
  |   `-- [email protected]
  |       Provide AMD's define() API for declaring modules in the AMD format
  |       git+https://github.com/jrburke/amdefine.git
  |       http://github.com/jrburke/amdefine
  +-- [email protected]
  |   ECMAScript parsing infrastructure for multipurpose analysis
  |   git+https://github.com/jquery/esprima.git
  |   http://esprima.org
  +-- [email protected]
  | | a little globber
  | | git://github.com/isaacs/node-glob.git
  | | https://github.com/isaacs/node-glob#readme
  | +-- [email protected]
  | | | Add callbacks to requests in flight to avoid async duplication
  | | | git+https://github.com/npm/inflight.git
  | | | https://github.com/isaacs/inflight
  | | +-- [email protected] deduped
  | | |   Run a function exactly one time
  | | |   git://github.com/isaacs/once.git
  | | |   https://github.com/isaacs/once#readme
  | | `-- [email protected] deduped
  | |     Callback wrapping utility
  | |     git+https://github.com/npm/wrappy.git
  | |     https://github.com/npm/wrappy
  | +-- [email protected]
  | |   Browser-friendly inheritance fully compatible with standard node.js inherits()
  | |   git://github.com/isaacs/inherits.git
  | |   https://github.com/isaacs/inherits#readme
  | +-- [email protected]
  | | | a glob matcher in javascript
  | | | git://github.com/isaacs/minimatch.git
  | | | https://github.com/isaacs/minimatch#readme
  | | `-- [email protected]
  | |   | Brace expansion as known from sh/bash
  | |   | git://github.com/juliangruber/brace-expansion.git
  | |   | https://github.com/juliangruber/brace-expansion
  | |   +-- [email protected]
  | |   |   Match balanced character pairs, like "{" and "}"
  | |   |   git://github.com/juliangruber/balanced-match.git
  | |   |   https://github.com/juliangruber/balanced-match
  | |   `-- [email protected]
  | |       concatenative mapdashery
  | |       git://github.com/substack/node-concat-map.git
  | |       https://github.com/substack/node-concat-map#readme
  | +-- [email protected] deduped
  | |   Run a function exactly one time
  | |   git://github.com/isaacs/once.git
  | |   https://github.com/isaacs/once#readme
  | `-- [email protected]
  |     Node.js 0.12 path.isAbsolute() ponyfill
  |     git+https://github.com/sindresorhus/path-is-absolute.git
  |     https://github.com/sindresorhus/path-is-absolute#readme
  +-- [email protected]
  | | Handlebars provides the power necessary to let you build semantic templates effectively with no frustration
  | | git+https://github.com/wycats/handlebars.js.git
  | | http://www.handlebarsjs.com/
  | +-- [email protected]
  | |   parse argument options
  | |   git://github.com/minimistjs/minimist.git
  | |   https://github.com/minimistjs/minimist
  | +-- [email protected]
  | |   Neo-Async is a drop-in replacement for Async, it almost fully covers its functionality and runs faster
  | |   git+ssh://[email protected]/suguru03/neo-async.git
  | |   https://github.com/suguru03/neo-async
  | +-- [email protected]
  | |   Generates and consumes source maps
  | |   git+ssh://[email protected]/mozilla/source-map.git
  | |   https://github.com/mozilla/source-map
  | +-- [email protected]
  | |   JavaScript parser, mangler/compressor and beautifier toolkit
  | |   git+https://github.com/mishoo/UglifyJS.git
  | |   https://github.com/mishoo/UglifyJS#readme
  | `-- [email protected] deduped
  |     Wrap those words. Show them at what columns to start and stop.
  |     git://github.com/substack/node-wordwrap.git
  |     https://github.com/substack/node-wordwrap#readme
  +-- [email protected]
  | | YAML 1.2 parser and serializer
  | | git+https://github.com/nodeca/js-yaml.git
  | | https://github.com/nodeca/js-yaml
  | +-- [email protected]
  | | | Very powerful CLI arguments parser. Native port of argparse - python's options parsing library
  | | | git+https://github.com/nodeca/argparse.git
  | | | https://github.com/nodeca/argparse#readme
  | | `-- [email protected]
  | |     JavaScript sprintf implementation
  | |     git+https://github.com/alexei/sprintf.js.git
  | |     https://github.com/alexei/sprintf.js#readme
  | `-- [email protected]
  |     ECMAScript parsing infrastructure for multipurpose analysis
  |     git+https://github.com/jquery/esprima.git
  |     http://esprima.org
  +-- [email protected]
  | | Recursively mkdir, like `mkdir -p`
  | | git+https://github.com/substack/node-mkdirp.git
  | | https://github.com/substack/node-mkdirp#readme
  | `-- [email protected] deduped
  |     parse argument options
  |     git://github.com/minimistjs/minimist.git
  |     https://github.com/minimistjs/minimist
  +-- [email protected]
  | | Option parsing for Node, supporting types, shorthands, etc. Used by npm.
  | | git+https://github.com/npm/nopt.git
  | | https://github.com/npm/nopt#readme
  | `-- [email protected] deduped
  |     Like ruby's abbrev module, but in js
  |     git+ssh://[email protected]/isaacs/abbrev-js.git
  |     https://github.com/isaacs/abbrev-js#readme
  +-- [email protected]
  | | Run a function exactly one time
  | | git://github.com/isaacs/once.git
  | | https://github.com/isaacs/once#readme
  | `-- [email protected]
  |     Callback wrapping utility
  |     git+https://github.com/npm/wrappy.git
  |     https://github.com/npm/wrappy
  +-- [email protected]
  |   resolve like require.resolve() on behalf of files asynchronously and synchronously
  |   git://github.com/substack/node-resolve.git
  |   https://github.com/substack/node-resolve#readme
  +-- [email protected]
  | | Detect whether a terminal supports color
  | | git+https://github.com/chalk/supports-color.git
  | | https://github.com/chalk/supports-color#readme
  | `-- [email protected]
  |     Check if argv has a specific flag
  |     git+https://github.com/sindresorhus/has-flag.git
  |     https://github.com/sindresorhus/has-flag#readme
  +-- [email protected]
  | | Like which(1) unix command. Find the first instance of an executable in the PATH.
  | | git://github.com/isaacs/node-which.git
  | | https://github.com/isaacs/node-which#readme
  | `-- [email protected]
  |     Minimal module to check if a file is executable.
  |     git+https://github.com/isaacs/isexe.git
  |     https://github.com/isaacs/isexe#readme
  `-- [email protected]
      Wrap those words. Show them at what columns to start and stop.
      git://github.com/substack/node-wordwrap.git
      https://github.com/substack/node-wordwrap#readme

@MaxisTekfield
Copy link
Author

MaxisTekfield commented Mar 14, 2023

After I reinstall [email protected], the problem's gone.
Maybe there are some incompatibles between [email protected] and [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant