-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Lerna Bootstrap Breaks When Using Yarn Version 2+ #2910
Comments
Did anyone manage to work around this issue or is there a replacement for lerna that can be recommended? |
You don't need to use |
As @merceyz mentioned, leave bootstrap up to package managers through workspaces. Lerna seems unmaintained and this approach can extends lerna usage with up to date tooling, until you prepare replacement. |
Lerna 4.0's other commands (like |
|
Expected Behavior
Lthe Lerna bootstrap command should work with version 2 of Yarn.
Current Behavior
I get the following error when running
lerna bootstrap
oryarn build
with version 2 of Yarn:Possible Solution
Update the
@lerna/bootstrap
module to use the version 2 Yarn install API.Steps to Reproduce (for bugs)
In a project set up to work with Yarn version 1 workspaces and Lerna:
lerna bootstrap
lerna.json
Context
Yarn version 1 takes almost an hour to install all our mono repo's dependencies and bootstrap them. To remedy this we attempted to move to Yarn version 2 (due to its superior caching), which fixed a lot of our issues - but now the
lerna bootstrap
command stopped working for us.Your Environment
lerna --version
4.0.0
(also tested on3.22.1
)npm --version
7.7.6
yarn --version
2.4.1
node --version
14.15.1
The text was updated successfully, but these errors were encountered: