Skip to content

Package error - couldn't find a script named "list". #564

@gdepouilly

Description

@gdepouilly

Describe the bug
The package command crashes since the upgrade of yarn from v1.19 to v4.6

To Reproduce

Run yarn serverless package --stage xx

Expected behavior

It should bundle without an error.

Screenshots or Logs

Error: Command failed with exit code 1: yarn list --json --production
Usage Error: Couldn't find a script named "list".

Image

Versions (please complete the following information):

  • OS: macOS 15.2
  • Serverless Framework Version:
    Framework Core: 3.40.0 (local)
    Plugin: 7.2.3
    SDK: 4.5.1
  • Plugin Version: 1.54.6

Additional context

I'm using yarn v4.6.0, and it seems the list command has been deprecated in favor of info as stated in the docs : https://yarnpkg.com/migration/guide#renamed-commands

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions