Skip to content

Unable to run yarn after upgrading yarn version to 3.x in azure build pipeine #113

@BharathiUpputella

Description

@BharathiUpputella

Before opening an issue please read this.

Are you reporting a bug or a feature request ?

  • Bug

Description

We are trying to run yarn command after installing yarn version 3.x using command "yarn set version 3.x". Yarn command is failing with error "The lockfile would have been modified by this install, which is explicitly forbidden."
Insert your description here

Expected behavior

But when we tried to install yarn version 2.x by using command "yarn set version berry" and then tried running yarn command to install dependencies and it worked.

Describe the expected behavior

Reproduction

Insert reproduction steps here

MANDATORY FOR BUGS: Insert debug trace

image

In order to allow us to quickly reproduce you issue please include a link to a reproduction repository

System information

VSTS or TFS:

  • VSTS
  • TFS

Agent:

  • Hosted
  • Custom

OS:
ubuntu

Yarn version:
Yarn version*

Node version:
Node version* 14.x

Metadata

Metadata

Assignees

No one assigned

    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