-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 throws error when failing to install optional dependency. #1032
Comments
Change this line "useWorkspaces": true ==>false, |
This isn't actually caused by Ideally, that whole "build command, arguments, and options" block would be extracted into a shared function so we don't have to maintain two code paths in the future. |
Refactor bootstrap to use same code path for all installs (eventually) and move internal npmGlobalStyle parameter into options property. Fixes lerna#1032
Refactor bootstrap to use same code path for all installs (eventually) and move internal npmGlobalStyle parameter into options property. Fixes #1032
I am facing the same issue, what is the fix for this?
| OS | Version | |
I'm also facing this issue: lerna -v 2.4.0 macOS High Sierra 10.13.6 |
I was facing this problem because of a missing local dependency. i.e, i was depending on a package in my monorepo but i accidently deleted it. |
Can you explain what you deleted accidentally in what file... I'm facing the same problem and it would be a precious indication on how to solve it. |
@ygmarchi let me clarify. Here is my project:
|
@haikyuu thanks, actually I've solved my problem, it was due to a bizarre Debian package called cmdtest containing an executable accidentally called also yarn. |
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I have been trying to use a package that has invalid semver in package.json optional dependencies but it always fails. This only fails when I run the lerna bootstrap command not the yarn install.
For some context I'm using yarn workspaces but I think it does not matter
Expected Behavior
Should not throw error on optional dependencies not installing
Current Behavior
This is what I get when running lerna bootstrap:
lerna ERR! execute Error: Command failed: yarn install --mutex network:42424
lerna ERR! execute warning Lockfile has incorrect entry for "oidc-client-fetch@>=1.2.0". Ignoring it.
lerna ERR! execute error Couldn't find any versions for "oidc-client-fetch" that matches ">=1.2.0"
Steps to Reproduce (for bugs)
lerna.json
lerna-debug.log
Context
Your Environment
lerna --version
npm --version
yarn --version
node --version
The text was updated successfully, but these errors were encountered: