-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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] npm publish
uses different registry then npm unpublish
#559
Comments
npm If your bug is preproducible on If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo Closing: This is an automated message. |
What / Why
This seems to be a duplicate of npm/npm#3032 even though the last comment claims the problem is resolved
In short, when the package contains both
.npmrc
andpublishConfig
setup it seems thatnpm publish
is respecting setup frompublishConfig
whilenpm unpublish
is using.npmrc
When
The project is using both
.npmrc
to define which registry to use to pull packages from andpublishConfig
to define to which registry the package should be pushed toExample:
.npmrc
package.json
npm publish --loglevel verbose
output:npm unpublish -f --loglevel verbose @dazn/[email protected]
Where
Current Behavior
npm publish
uses registry defined inpublishConfig
NOTICE
npm http fetch PUT 200
https://registry.npmjs.org/
@dazn%2fdaznid 3769ms
in above examplenpm unpublish
uses registry defined in.npmrc
NOTICE
npm http fetch GET 401
https://example.com/
`@dazn%2fdaznid?write=true 105msSteps to Reproduce
See above
Expected Behavior
npm publish
andnpm unpublish
to use same setup (preferably one which allow to have different registry for pull and push)Who
References
Related to npm/npm#3032
The text was updated successfully, but these errors were encountered: