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 global upgrade complains about outdated lockfile #9076

Open
awwright opened this issue Jul 4, 2024 · 0 comments
Open

yarn global upgrade complains about outdated lockfile #9076

awwright opened this issue Jul 4, 2024 · 0 comments

Comments

@awwright
Copy link

awwright commented Jul 4, 2024

I run into a problem when trying to upgrade my global packages. To upgrade them, I run yarn global upgrade --latest, but it just reports this error:

warning package.json: No license field
info No lockfile found.
error Outdated lockfile. Please run `yarn install` and try again.
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.

This is a very odd error, I'm not sure why global packages would ever need a lockfile. I just want the latest versions of packages, there is no reason a lockfile should play into this at all.

I can't find any documentation about this. A Web search for "yarn outdated lockfile" lists #6320 as the top result. The workaround there doesn't work, because yarn install won't install one of my packages due to a build error. This may be a bug in one of the packages... which I can't upgrade away from because I can't run yarn global upgrade.

@awwright awwright changed the title yarn global about outdated lockfile yarn global upgrade complains about outdated lockfile Jul 4, 2024
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

1 participant