Class Yarn2

  • All Implemented Interfaces:
    org.ossreviewtoolkit.utils.common.CommandLineTool

    
    public final class Yarn2
    extends PackageManager implements CommandLineTool
                        

    The Yarn 2+ package manager for JavaScript.

    This package manager supports the following options:

    • disableRegistryCertificateVerification: If true, the yarn npm info commands called by this package manager will not verify the server certificate of the HTTPS connection to the NPM registry. This allows to replace the latter by a local one, e.g. for intercepting the requests or replaying them.

    • corepackOverride: Per default, this class determines via auto-detection whether Yarn has been installed via Corepack, which impacts the name of the executable to use. With this option, auto-detection can be disabled, and the enabled status of Corepack can be explicitly specified. This is useful to force a specific behavior in some environments.