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

Use corepack for managing yarn version #598

Closed
trivikr opened this issue Jul 15, 2024 · 0 comments · Fixed by #599
Closed

Use corepack for managing yarn version #598

trivikr opened this issue Jul 15, 2024 · 0 comments · Fixed by #599

Comments

@trivikr
Copy link
Contributor

trivikr commented Jul 15, 2024

Is your feature request related to a problem? Please describe.

The jscodeshift project uses yarn for development, but doesn't manage yarn version using corepack recommended by yarn team.

$ node -v
v20.15.1

$ yarn
zsh: command not found: yarn

$ corepack -v
0.28.1

$ corepack enable

$ yarn
! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447.
! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager

yarn install v1.22.19
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...

warning Your current version of Yarn is out of date. The latest version is "1.22.22", while you're on "1.22.19".
info To upgrade, run the following command:
$ curl --compressed -o- -L https://yarnpkg.com/install.sh | bash
$ cp -R src/ dist/
✨  Done in 2.70s.

Describe the solution you'd like

Use corepack for managing yarn version

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

Successfully merging a pull request may close this issue.

1 participant