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
Npm postinstall and lerna bootstrap #1857
Comments
I have recently had postinstall errors when deploying to AWS Elastic Beanstalk:
Not sure why this is happening as all my package versions are |
@kirill-konshin If you move the @joetidee That's not a |
Prepare trick DID NOT WORK. Team has investigated, looks like the root cause is usage of non-strict lerna dependencies: Actual issue is probably caused by this commit 944e36f#diff-f132f0ed53f33747644da180a09d15baR170 Considering that we did not change the lerna version this is a major bug to me. Also team has figured that the following works: - "postinstall": "npm run bootstrap",
- "bootstrap": "lerna bootstrap --no-ci --hoist --loglevel warn --concurrency 4",
+ "postinstall": "lerna bootstrap --no-ci --hoist --loglevel warn --concurrency 4 ", E.g. place |
If you didn't change the version of lerna, then why exactly weren't you also using a lockfile? Seems pretty odd to expect an install to stay stable over time without a lockfile. And yes, it appears my trick of checking the |
v3.10.2 should resolve this. |
We were not using lockfile because it turned out to be completely useless as we have 30+ developers working on same codebase and most of the times devs resolve conflicts inside lockfile by erasing it :) otherwise over time it was polluted with weirdness. But that's a side question... More important one is why breaking changes sneaked in minor version update. v3.10.2 fix confirmed. |
Humans make mistakes? |
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. |
We're using Lerna @ 3.4.0 (also tried on 3.9.1) and we have the following in
package.json
:It used to work fine until yesterday.
We did not change dependencies, we even haven't committed anything to the codebase, but starting Jan 8 6:01 AM UTC we get infinite loops on bootstrap, even in old branches.
It seems that it could be related to something like #1103 (comment) but I can't figure out what has changed.
We use strict versions everywhere and on other project same setup works fine (but it has different set of underlying deps).
It begins to work properly if we rename
postinstall
to something else and run it manually.Another solution is to do
npm install --ignore-scripts
and then donpm run postinstall
.The text was updated successfully, but these errors were encountered: