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.

Publish attempt without being logged in failed and can't re-publish

See original GitHub issue

Lerna is fairly aggressive in thinking it’s published a package when it hasn’t.

I attempted a publish, it failed when I wasn’t logged in to npm.

Lerna now believes it’s published because the packages are version bumped locally, there are no new commits and that’s it.

I’m now having to figure out the --force-publish flag, which I struggle to get working with zsh:"

$ lerna publish --force-publish=*
zsh: no matches found: --force-publish=*
$ lerna publish --force-publish="*"                                                  1 ↵
info cli using local version of lerna
lerna notice cli v3.10.7
lerna info current version 0.0.6
lerna info Looking for changed packages since v0.0.6
lerna WARN force-publish all packages
lerna ERR! ERELEASED The current commit has already been released. Please make new commitsbefore continuing.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
gauntfacecommented, Feb 28, 2019

Would it be possible for lerna to verify npm auth before versioning?

1reaction
evocateurcommented, Feb 8, 2019

Clearly I’m not doing a good enough job of documenting the existing options for lerna publish, because there have been positional arguments available for several months now to help in just the sort of situation you’re describing here.

You don’t need --force-publish if you’re on the commit generated by lerna version. lerna publish from-git is all you need in that context.

Read more comments on GitHub >

github_iconTop Results From Across the Web

BBB can not publish sessions · Issue #8363 · bigbluebutton ...
Days ago had a problem. All sessions was noy publishing after the session ends. ` univirtual@univirtual-ProLiant-ML350-G6:~$ bbb-record ...
Read more >
Map service fails to publish in Pro 2.4 - Esri Community
If not, try publishing again and if it fails, go to Server Manager and view the server log in debug mode. Let us...
Read more >
Giving error when try to publishing after unpublish
Click Disconnect - Session Disconnect; Click Connect - Publisher Initialized (But here I get the error). Tokbox Republishing issues OpenTok: ...
Read more >
Can no longer publish content types from hub in o365
I tried re-publishing content types in a completely different group and got the same message. When I looked at the error logs, I...
Read more >
An error appears when republishing a cube created in a ...
This article explains why you may see the error, Unable to publish the cube. com.microstrategy.webapi.MSTRWebAPIException: (You do not have ...
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