question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error running `lerna updated`

See original GitHub issue

Hi, 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:closed
  • Created 8 years ago
  • Comments:26 (16 by maintainers)

github_iconTop GitHub Comments

5reactions
danielo515commented, Sep 20, 2017

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

3reactions
danielo515commented, Sep 20, 2017

Also I want to note that all my tags are annotated:

bash-3.2$ git tag -n99
case-results-service@0.2.0 case-results-service@0.2.0
case-results-service@0.3.0 case-results-service@0.3.0
case-results-service@1.0.0 case-results-service@1.0.0
case-results-service@2.0.0 case-results-service@2.0.0
results-service@2.0.0 results-service@2.0.0
results-service@3.0.0 results-service@3.0.0
sekeleton       chore: First commit + skeleton
v1.0.0          First version

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found