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 cant publish if two workspaces that depend on each other change #3493
Comments
Same thing happening to me, I have a setup where I have a dependency tree and the leafs are either trying to use the old incompatible version from npm or the non-uploaded-yet version when running Edit: Found the culprit: Not sure what the fix would be, if you are using only peerdeps adding Edit again! Found it! |
Faced similar issue, I have npm8... Raised an SO question: |
Thanks for digging into this more than I did. I decided to just switch to yarn and all is working well now. Seems like this might be an issue out of Lernas control and an issue should be raised with npm? |
Hello there! Having the save issue. |
Hello. Same issue here. I tried to downgrade to npm 8 as suggested but this is not helping. |
Current Behavior
If I have package A that depends on package B and I change package b, lerna fails because it calls
npm install
. Since package B's version changed, npm seems to not be able to track that its a local package anymore and instead tries to get it from the registry.Expected Behavior
This very well might just be chalked up to an npm issue (since NPM is throwing the error) but I can't see what I'm trying to do as uncommon so either there's a configuration that I'm missing or there needs to be a way to customize the order everything gets published?
Workaround
Steps to Reproduce
2nd time it should fail as package a's package.json is updated to the version pre package b getting published
Failure Logs / Configuration
lerna.json
lerna-debug.log
Environment
The text was updated successfully, but these errors were encountered: