Skip to content

[BUG] npm login with scope create .npmrc without @scope:registry=... #3292

@hajekj14

Description

@hajekj14

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

npm login --registry=http://reg.example.com --scope=@myco

create ~/.npmrc

//reg.example.com/:_authToken="token"

Expected Behavior

npm login --registry=http://reg.example.com --scope=@myco

create ~/.npmrc

@myco:registry=https://reg.example.com/
//reg.example.com/:_authToken="token"

Steps To Reproduce

  1. In this environment...
  2. With this config...
  3. Run '...'
  4. See error...

Environment

  • OS: Linux & Win in general
  • Node:
  • npm: 7.8.0

Metadata

Metadata

Assignees

Labels

Bugthing that needs fixingPriority 1high priority issueRelease 7.xwork is associated with a specific npm 7 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions