Skip to content

jfrog aud --yarn fails on Yarn v4 despite v2.104.1 adding Yarn v4 support #3512

@kellsbells

Description

@kellsbells

Describe the bug

jfrog aud --yarn fails on Yarn v4 monorepos despite v2.104.1 release notes explicitly listing Yarn v4 support (RTECO-1035).

Current behavior

Every package in the monorepo fails with:
failed to build dependency tree: failed while building 'yarn' dependency tree: failed to configure an Artifactory resolution server or running and install command: resolving Yarn dependencies from Artifactory is currently not supported for Yarn V1 and Yarn V4. The current Yarn version is: 4.5.3

Reproduction steps

  1. Have a Yarn v4 (Berry) monorepo with yarnPath: .yarn/releases/yarn-4.5.3.cjs set in .yarnrc.yml
  2. Install jfrog CLI v2.104.1
  3. Run jfrog aud --yarn
  4. Observe error above for every package in the workspace

Expected behavior

Audit runs successfully and generates a dependency tree using Yarn v4 as advertised in the v2.104.1 release notes: https://github.com/jfrog/jfrog-cli/releases/tag/v2.104.1

JFrog CLI version

jf version 2.104.1

Operating system type and version

macOS Darwin 25.5.0

JFrog Artifactory version

No response

JFrog Xray version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions