Error running `lerna updated`
See original GitHub issueHi, I’m trying to run lerna on an existing monorepo. I’ve run lerna bootstrap
without issues, but I’m seeing this error when running lerna updated
:
Checking packages...
fatal: No annotated tags can describe 'af2c265fda2e7a93c4f6881b747e6f398d4e7c8d'.
However, there were unannotated tags: try --tags.
child_process.js:484
throw err;
^
Error: Command failed: git describe af2c265fda2e7a93c4f6881b747e6f398d4e7c8d
fatal: No annotated tags can describe 'af2c265fda2e7a93c4f6881b747e6f398d4e7c8d'.
However, there were unannotated tags: try --tags.
at checkExecSyncError (child_process.js:441:13)
at Object.execSync (child_process.js:481:13)
at execSync (/usr/local/lib/node_modules/lerna/lib/commands/updated.js:63:16)
at Object.exports.checkUpdatedPackages (/usr/local/lib/node_modules/lerna/lib/commands/updated.js:30:23)
at Object.exports.execute (/usr/local/lib/node_modules/lerna/lib/commands/updated.js:9:33)
at Object.<anonymous> (/usr/local/lib/node_modules/lerna/bin/lerna.js:41:9)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
Any idea what could be wrong?
Issue Analytics
- State:
- Created 8 years ago
- Comments:26 (16 by maintainers)
Top Results From Across the Web
Untitled
1. Run the equivalent of `lerna updated` to determine which packages need to be published. 2. If necessary, increment the `version` key in...
Read more >lerna run `lerna version patch` throw error git remote update ...
I use lerna and want to use lerna version to manage my version。 I add password to my ssh key. I can do...
Read more >Lerna error: cannot find module during CI build - Stack Overflow
I was able to fix this issue by changing the Dockerfile. Running yarn before running lerna bootstrap ...
Read more >@lerna/validation-error | Yarn - Package Manager
A package is considered "updated" using the same rules as lerna updated . ... With this flag, lerna exec will run the command...
Read more >lerna: command not found error [Solved] | bobbyhadz
Use `npx` to solve the error lerna: command not found, e.g. `npx lerna --version` or install the package globally by running `npm install...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In my opinion this issue should be reopened. The bug exists and it’s well documented and it is also very annoying. Even if you don’t want to bug the root cause of the problem it would be ideal to provide any fallback mechanism. Maybe allowing to create a manual named tag using lerna or whatever we came up with
Also I want to note that all my tags are annotated:
So I’m a bit on a dead end here: all my tags are annotated, but I can not create a new tag because the current sha is not an annotated tag. I don’t know what lerna actually expects and why this fails randomly