Skip to content

Exception occurred initializing Yarn Audit Analyzer #4972

@antonysmith-mandogroup

Description

@antonysmith-mandogroup

@jeremylong according to #4049, this should have been fixed in 7.0.0, but I still appear to be seeing it in 7.1.0.

I'm getting the following in a project that only has references to yarn.lock files in node_modules:

[WARN] The Yarn Audit Analyzer has been disabled. Yarn executable was not found.
[ERROR] Exception occurred initializing Yarn Audit Analyzer.

As suggested above, I've run ODC with --log and this is the output:

	Line     48: DEBUG - Setting: analyzer.yarn.audit.enabled='true'
	Line  43436: DEBUG - Found file ***\node_modules\@yarnpkg\lockfile\README.md
	Line  43438: DEBUG - Found file ***\node_modules\@yarnpkg\lockfile\index.js
	Line  43440: DEBUG - Found file ***\node_modules\@yarnpkg\lockfile\package.json
	Line  51178: DEBUG - Found file ***\node_modules\browserify-zlib\yarn.lock
	Line  51480: DEBUG - Found file ***\node_modules\bs-recipes\recipes\webpack.preact-hot-loader\yarn.lock
	Line  55474: DEBUG - Found file ***\node_modules\chrome-trace-event\yarn.lock
	Line  66882: DEBUG - Found file ***\node_modules\debug-fabulous\yarn-error.log
	Line  66884: DEBUG - Found file ***\node_modules\debug-fabulous\yarn.lock
	Line  67694: DEBUG - Found file ***\node_modules\dom-event-types\yarn.lock
	Line  82150: DEBUG - Found file ***\node_modules\fileset\yarn.lock
	Line  82842: DEBUG - Found file ***\node_modules\form-data\yarn.lock
	Line  84908: DEBUG - Found file ***\node_modules\gulp-accessibility\yarn.lock
	Line  85274: DEBUG - Found file ***\node_modules\gulp-htmlhint\yarn.lock
	Line  88970: DEBUG - Found file ***\node_modules\has-yarn\index.d.ts
	Line  88972: DEBUG - Found file ***\node_modules\has-yarn\index.js
	Line  88974: DEBUG - Found file ***\node_modules\has-yarn\license
	Line  88976: DEBUG - Found file ***\node_modules\has-yarn\package.json
	Line  88978: DEBUG - Found file ***\node_modules\has-yarn\readme.md
	Line 102190: DEBUG - Found file ***\node_modules\is-number-like\yarn.lock
	Line 102438: DEBUG - Found file ***\node_modules\is-yarn-global\.travis.yml
	Line 102440: DEBUG - Found file ***\node_modules\is-yarn-global\LICENSE
	Line 102442: DEBUG - Found file ***\node_modules\is-yarn-global\README.md
	Line 102444: DEBUG - Found file ***\node_modules\is-yarn-global\index.js
	Line 102446: DEBUG - Found file ***\node_modules\is-yarn-global\package.json
	Line 108430: DEBUG - Found file ***\node_modules\jsx-ast-utils\yarn.lock
	Line 111408: DEBUG - Found file ***\node_modules\known-css-properties\yarn.lock
	Line 131174: DEBUG - Found file ***\node_modules\psl\yarn.lock
	Line 133632: DEBUG - Found file ***\node_modules\registry-auth-token\yarn.lock
	Line 146440: DEBUG - Found file ***\node_modules\snyk-nodejs-lockfile-parser\dist\parsers\yarn-lock-parse.d.ts
	Line 146442: DEBUG - Found file ***\node_modules\snyk-nodejs-lockfile-parser\dist\parsers\yarn-lock-parse.js
	Line 146444: DEBUG - Found file ***\node_modules\snyk-nodejs-lockfile-parser\dist\parsers\yarn-lock-parse.js.map
	Line 147026: DEBUG - Found file ***\node_modules\snyk\dist\lib\plugins\yarn\index.js
	Line 147028: DEBUG - Found file ***\node_modules\snyk\dist\lib\plugins\yarn\index.js.map
	Line 147130: DEBUG - Found file ***\node_modules\snyk\dist\lib\yarn.js
	Line 147132: DEBUG - Found file ***\node_modules\snyk\dist\lib\yarn.js.map
	Line 147242: DEBUG - Found file ***\node_modules\snyk\node_modules\chardet\yarn.lock
	Line 153890: DEBUG - Found file ***\node_modules\uri-js\yarn.lock
	Line 156076: DEBUG - Found file ***\node_modules\vue-loader\node_modules\vue-style-loader\yarn.lock

Should I be expecting to see this behaviour in 7.1.0?

Thanks

Originally posted by @antonysmith-mando in jeremylong/DependencyCheck#3137 (comment)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions