You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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 registryWhere
CLI
How
N/A
Current Behavior
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
The text was updated successfully, but these errors were encountered: