Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
bnb opened this issue Apr 18, 2022 · 3 comments
Open
2 tasks done
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release

Comments

@bnb
Copy link
Contributor

bnb commented Apr 18, 2022

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
@bnb bnb added Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release labels Apr 18, 2022
@ljharb
Copy link
Contributor

ljharb commented Apr 18, 2022

doesn't tom own myspace

@wraithgar
Copy link
Member

wraithgar commented Apr 18, 2022

We removed the bug the maintainer language in 8.5.5 https://github.com/npm/cli/blob/latest/CHANGELOG.md#v855-2022-03-17

#4572

@wraithgar
Copy link
Member

All the cli knows is that it got a 404, it doesn't know whether or not the organization exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release
Projects
None yet
Development

No branches or pull requests

3 participants