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

Return a more precise error on 403 PUT error for existing package #1269

Closed
rubengmurray opened this issue May 9, 2020 · 0 comments
Closed

Comments

@rubengmurray
Copy link

rubengmurray commented May 9, 2020

What / Why

Return a clearer error message when trying to publish a package for the first time but the package name is already in use. Include the fact more clearly in the error response, so that I know only a simple name change is needed to make things work.

When

Running npm publish when trying to add a new package to the registry

Where

CLI

How

N/A

Current Behavior

npm ERR! code E403
npm ERR! 403 403 Forbidden - PUT https://registry.npmjs.org/joi-error-formatter - You do not have permission to publish "joi-error-formatter". Are you logged in as the correct user?
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/user/.npm/_logs/2020-05-09T10_54_44_120Z-debug.log

Expected Behavior

Only needs a couple of words added perhaps between permission to publish and "package-name".

For example:
permission to publish **to existing npm package** "joi-error-formatter"

Who

New package publishers

References

  • n/a
@rubengmurray rubengmurray changed the title Return a more precise error on 403 PUT error for existing package name Return a more precise error on 403 PUT error for existing package May 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants