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
Exclude --package-lock-only from npm install #3418
Comments
Experience the same during lerna publish Somehow only happening since today, didn't update lerna though 🤔 npm install --package-lock-only --ignore-scriptslerna ERR! lerna npm ERR! code ETARGETlerna ERR! lerna npm ERR! notarget No matching version found for @hokify/jobmodule-xmlalex@^2.17.1.lerna ERR! lerna npm ERR! notarget In most cases you or one of your dependencies are requestinglerna ERR! lerna npm ERR! notarget a package version that doesn't exist.lerna ERR! lerna lerna ERR! lerna npm ERR! A complete log of this run can be found in:lerna ERR! lerna npm ERR! /root/.npm/_logs/2022-11-10T05_11_45_957Z-debug-0.logAction failed: see logs above for detailsFAILEDContainer exited with status code other than 0 |
@simllll We got that error after upgrading Angular from v11 to v14 and related dependencies. |
Could it be related to npm@9? This was set to latest npm yesterday Ref #3403 Wednesday Nov. 9th (General Availability) |
It is definitely related to npm v9, works with version 8. |
Just experienced the same error. Downgrading to npm v8 fixed it. |
I'm using npm v8.19.2 and this has just started happening today, is there any workaround? |
The fix is to downgrade your npm as pointed out in the comment before yours, or the better solution is to wait for either PR #3434 or #3427 to merged and released, then use the option |
Thanks for getting back to me @ghiscoding but the recommended fix was to downgrade to npm v8, which I'm already on. This has been working fine for weeks and has randomly started happening today. No npm version bumps our end |
@ghiscoding I'm not sure if this is really a fix or more just a workaround. |
@TombolaShepless @simllll |
Thanks @ghiscoding I'll give that a try, but what I don't understand is why this has been working for weeks using that exact npm version (8.19.2)? |
try running and for the reason why it worked before but fails today is because prior to today you probably didn't have any dependencies version that changed but you do today so it fails |
@ghiscoding Can confirm that deleting the lock file and running |
Lerna cannot bump versions due to incompatibility of the lock file, so it was ignored during the version bumping. This workaround introduced a bug mentioned at #389 Now I've tried to bump versions without ignoring the lock file and it works, so the workaround is simply removed by this commit. Ref: lerna/lerna#3418 (comment)
…398) Lerna cannot bump versions due to incompatibility of the lock file, so it was ignored during the version bumping. This workaround introduced a bug mentioned at #389 Now I've tried to bump versions without ignoring the lock file and it works, so the workaround is simply removed by this commit. Ref: lerna/lerna#3418 (comment)
Hello everyone, I´m having the same issue while running publish inside the ci. running the version of node and npm locally and in the ci: node version = v18.16.1
I also get a bunch of warnings about peer dependencies relate to typescript, warnings in npm became errors in lerna:
Also at the very end I get a auth error:
Any ideas of how to solve it? Thanks in advance |
@elassol Do you have dependencies that are downloaded from a 3rd party registry? It looks like authentication to a registry is failing. |
Yes we have both private and public We are using azure devops pipelines I added the registry to lerna.json to try to force it to se the private one And in the pipeline we have
|
Current Behavior
By running the command,
npx lerna version --conventional-commits --no-changelog --no-push --yes
, later on It is using npm install (npm install --package-lock-only --ignore-scripts
) command internally. Due to certain changes in package lock file, It is failing repeatedly.I want to exclude it.
lerna ERR! Error: Command failed with exit code 1: npm install --package-lock-only --ignore-scripts
Expected Behavior
I found may be similar issue here: #3386
Failure Logs / Configuration
lerna.json
The text was updated successfully, but these errors were encountered: