Skip to content

[BUG] when publishing a scoped module to an org that doesn't exist, npm is a bit too helpful #4773

Description

@bnb

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

  • I want to publish @myspace/bnb
  • I verify that @myspace is not taken as a scope
  • I create my package and run npm publish --access public
  • npm "helpfully" tells me that @myspace/bnb is not published and that I should ask the maintainer to publish it or do so myself
    • that is what I'm trying to do?

Expected Behavior

  • I want to publish @myspace/bnb
  • I verify that @myspace is not taken as a scope
  • I create my package and run npm publish --access public
  • npm tells me that @myspace/bnb cannot be published by me because the organization does not exist and that I should go create the organization before trying to publish it

Steps To Reproduce

  1. create package under a scope of an org that doesn't exist
  2. try to publish
  3. get told that the publish failed and that you should try to publish

Environment

  • npm: 8.5.3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next stepsRelease 8.xwork is associated with a specific npm 8 release

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions