Skip to content

Force npmjs registry for yarn install #1348

@rarkins

Description

@rarkins

There exists a problem where yarn install (i.e. generating yarn.lock) can fail because (a) yarn defaults to using its own proxy/mirror of npmjs, and (b) that proxy is not perfectly up-to-date. So a new version of a package can be published to npmjs, which Renovate detects and updates package.json, but then yarn install fails because the yarn registry returns a 404 for that particular version.

My issue in the yarn repository: yarnpkg/yarn#5169

Proposal: "force" yarn to use the npmjs registry for install instead.

Ensure .yarnrc exists and first line is registry "https://registry.npmjs.org"

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority-4-lowLow priority, unlikely to be done unless it becomes important to more people

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions