You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Locally, when I run lerna version patch, everything works as expected.
When run on a build server, it fails with the following error:
lerna verb version Updating root package-lock.json
lerna ERR! Error: Command failed with exit code 1: npm install --package-lock-only --ignore-scripts --nohoist=*
lerna ERR! npm ERR! code ETARGET
lerna ERR! npm ERR! notarget No matching version found for myproject-core@^1.0.37.
lerna ERR! npm ERR! notarget In most cases you or one of your dependencies are requesting
lerna ERR! npm ERR! notarget a package version that doesn't exist.
What's weird, is that on the server it appears to be running this command:
Hi @nickgrealy , thank you for reporting this issue. I suspect this is due to different node versions between your CI and your local machine. When using my default versions of node@18.14.0 and npm@9.3.1, I get the same error you are seeing on CI.
When I switch to those outlined in your environment report, node@18.3.0 and npm@8.17.0, I do not get the issue locally, just as you described.
I would suggest double checking your node, npm, and yarn versions between your local machine and CI and even updating to their latest versions if possible.
Current Behavior
Locally, when I run
lerna version patch
, everything works as expected.When run on a build server, it fails with the following error:
What's weird, is that on the server it appears to be running this command:
lerna ERR! Error: Command failed with exit code 1: npm install --package-lock-only --ignore-scripts --nohoist=*
... which does not get executed when running locally.
Expected Behavior
I'd expect the behaviour to be the same as running locally.
Steps to Reproduce
The github repo is public:
Build locally:
Failure Logs / Configuration
Failed build: https://github.com/mountain-pass/server-agnostic-functions/actions/runs/4279666115
(works locally)
github.log
lerna.json
Environment
The text was updated successfully, but these errors were encountered: