Forced publish, failure #2085
Unanswered
carlosen14
asked this question in
Q&A
Replies: 1 comment
-
I think this is good to not republish a package. Use test to avoid publishing a package with a wrong version. If you fix, then publish a new version. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
When try to publish forced an already published pkg, i preffer to use
--force
instead ofnpm unpublish
. But i kind of remember on previous version i could do that, now it just throw an NPM ERR.Actually, this removes the pkg from Verdaccio, so, the problem is after the internal
unpublish
. Even the specific version is unpublished, doesn't allow me to publish it agait, it does not appear on Verdaccio UI, but says it is the same errorUnexpected token u in JSON at position 0
, like if the package wasn't completely removed.To Reproduce
I'll reproduce my case, login with my user cvilla. ONLY root user can unpublish.
Steps to reproduce the behavior:
npm publish --force
. This will fail.Expected behavior
Unpublish the previous version, and publish the actual one.
Screenshots
If applicable, add screenshots to help explain your problem.
Docker || Kubernetes (please complete the following information):
Configuration File (cat ~/.config/verdaccio/config.yaml)
Environment information
verdaccio --info
: sh: verdaccio: not found (on docker)Debugging output
$ NODE_DEBUG=request verdaccio
display request calls (verdaccio <--> uplinks)$ DEBUG=express:* verdaccio
enable extreme verdaccio debug mode (verdaccio api)$ npm -ddd
prints:$ npm config get registry
prints:Additional context
This might be a NPM error, or a compatibility.
Beta Was this translation helpful? Give feedback.
All reactions