Skip to content

[BUG] npm 7.x ignores publishConfig.registry #1937

Closed
@marcusds

Description

@marcusds

Current Behavior:

npm publish does not follow publishConfig.registry, if registry is .npmrc it will try to publish to that, if not npm.org.

Expected Behavior:

npm publish publish to defined publishConfig.registry as it did in 6.x.

Steps To Reproduce:

  • Install npm@latest-7
  • Set publishConfig.registry IE: "publishConfig": { "registry": "https://..." }
  • Run npm publish

Environment:

  • OS: Windows 10
  • Node: 12.18.1
  • npm: 7.0.0-rc.3

Metadata

Metadata

Assignees

Labels

Bugthing that needs fixingRelease 7.xwork is associated with a specific npm 7 release

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions