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 publishing - git tags pushed

See original GitHub issue

Pushing to private verdaccio worked 7 days ago using same lerna and repo… but when committed, and lerna publish ran, git tags were pushed and then an error occurred. I now can’t publish even after i manually change the readme for my package to bump up the number. I get the same error (current behaviour below).

Expected Behavior

Publish to private verdaccio

Current Behavior

lerna http fetch PUT 500 <private verdaccio url> 70776ms attempt #3 lerna ERR! Error: 500 Internal Server Error - PUT <private verdaccio url> lerna ERR! at res.buffer.catch.then.body (/Users/<name>/projects/packages/node_modules/npm-registry-fetch/check-response.js:104:15) lerna ERR! lerna 500 Internal Server Error - PUT <private verdaccio>

Possible Solution

Not sure how to publish to verdaccio

lerna.json

<!-- Please paste your `lerna.json` here -->
{
  "lerna": "3.4.1",
  "packages": [
    "packages/*"
  ],
  "version": "independent",
  "npmClient": "yarn",
  "useWorkspaces": true,
  "command": {
    "publish": {
      "allowBranch": "master",
      "conventionalCommits": true,
      "message": "chore(release): updated release notes and package versions"
    }
  }
}

Context

i basically need to push my package to private verdaccio that would be great

Your Environment

Executable Version
lerna --version 3.11.0
npm --version 6.4.1
yarn --version 1.9.4
node --version v10.15.1

| OS | macOS Sierra | 10.12.3 |

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
evocateurcommented, Feb 8, 2019

Since the version of Lerna you’re reporting didn’t exist 7 days ago, I’m going to assume it was a different version of lerna, and quite possibly the underlying npm-registry-fetch library. Can you verify that for me, please?

As for publishing to the registry:

  • If none of the packages published successfully, but the git changes and tags were pushed, you can use this command to recover:

    npx lerna publish from-git
    
  • If some of the packages successfully published during the initial lerna publish, you can use this command to publish the remaining:

    npx lerna publish from-package
    

If possible, I would also appreciate a full lerna-debug.log, if you have it. Thanks.

1reaction
evocateurcommented, Feb 9, 2019

Yep, you’ve got it right.

Read more comments on GitHub >

github_iconTop Results From Across the Web

tag already exists in the remote" error after recreating the git tag
It's trivial if you can log in on the remote. Just go to the Git repository there and run git tag -d dev...
Read more >
[JENKINS-37120] Git Publisher fails to push tags with ...
We've run into an issue with the refs/tags/xxx workaround. It appears that due to the core issue (wrong tag refspec as described by...
Read more >
How to fix elm publish 'not tagged on GitHub' error? - Learn
I am trying to publish an elm package after pushing it to Github at https://github.com/Viir/onlinegamemaker/tree/1.0.0/implement/elm/package/simplegamedev.
Read more >
Git Publisher: EnvVar in tag name - Google Groups
ERROR: Failed to push tag v$VERSION to origin. hudson.plugins.git.GitException: Command "git -c core.askpass=true push ssh://g.
Read more >
Git error "Your push would publish a private email address"
Git error "Your push would publish a private email address" · Find your GitHub email address. Your GitHub no reply address is in...
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