Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YARN 3- Usage Error: Couldn't find a script named "cz". #951

Open
pedronastasi opened this issue Oct 24, 2022 · 1 comment
Open

YARN 3- Usage Error: Couldn't find a script named "cz". #951

pedronastasi opened this issue Oct 24, 2022 · 1 comment

Comments

@pedronastasi
Copy link

pedronastasi commented Oct 24, 2022

We've been using Yarn Classic for our project, which is a monorepo with different workspaces.. We decided to upgrade yarn to Yarn version 3.2.3.

We used to run:

yarn workspace @repo/plugin cz

and it worked.

Now with the new version, it throws, even though we have it already installed at the root level


Usage Error: Couldn't find a script named "cz".

$ yarn run [--inspect] [--inspect-brk] [-T,--top-level] [-B,--binaries-only] <scriptName> ...

We have already set the following in settings inside the package.json workspace

 "config": {
    "commitizen": {
      "path": "./node_modules/cz-conventional-changelog"
    }
  }

It works fine if I install the dependency inside the plugin, but it shouldn't happen as it is already installed at the root level, and as I explained before it still works with yarn classic.

I've been stuck with issues for a while, so I wonder if Yarn 3.2.3 has a different way of doing things that throws that error or if it is a compatibility issue.

@Zhengqbbb
Copy link
Contributor

Zhengqbbb/cz-git#90

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants