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

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

Open
gdepouilly opened this issue Jan 22, 2025 · 0 comments
Open

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

gdepouilly opened this issue Jan 22, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@gdepouilly
Copy link

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

@gdepouilly gdepouilly added the bug Something isn't working label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant