lerna / lerna/lerna

Use lerna publish to prompt npm not logged in

Open
#2,966 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: bug
Dominant language
TypeScript
Stars
36.1k
Forks
2.3k
Avg merge
1d 4h
Merged PRs (30d)
50

Description

Use lerna publish to prompt that npm is not logged in and cannot publish @tuimao/eslint
But I am logged in, And manual posting is valid.
Every time it runs, a gitHash will be produced in the changed dependency package package.json and then it will stop working.

I tried to test lerna publish in another project, but this problem did not occur

This is my configuration

{
  "packages": [
    "packages/*"
  ],
  "npmClient": "yarn",
  "version": "independent",
  "useWorkspaces": true
}

Use in commands
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files or tests are identified. Start by reproducing lerna publish with the shown independent, Yarn-backed workspace configuration, compare it with manual publishing, and verify that authentication succeeds without changing dependency package.json files or stopping the release.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
release
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.