-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Can't publish packages to other registry than npm registry #20919
Comments
I've tried to configure an aws codeartifact registry but I always have an error on the same command: I think the code below limits the publishing to npm registry
For other registry like github package registry or a codeartifact we have differents 404 error messages
|
I can also confirm the issue when trying to publish to a registry hosted by JFrog Artifactory. Waiting for the debugger to disconnect...
Something unexpected went wrong when checking for existing dist-tags.
Error: Command failed: npm view @scope/package versions dist-tags --json
Debugger attached.
npm ERR! code E404
npm ERR! 404 Not Found - GET https://xyx.jfrog.io/artifactory/api/npm/npm-virtual/@scope%2fpackage - not_found
npm ERR! 404
npm ERR! 404 '@scope/package@*' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url. Maybe an additional prompt could be added in this scenario?
workaround: Publish the first version manually by using the publish script in node tools/scripts/publish.mjs [package-name] [0.1.0] latest |
Duplicate of #19971 |
@thdk This doesn't actually look like a duplicate of that issue. This relates to publishing, that other issue relates to versioning. As others have pointed out, this seems to be more to do with how we inspect the error messages from the npm CLI when publishing and how for non-npm registries the output is subtly different. |
Can we publish to Gitlab private registry using npm release publish --resgistry=https://gitlab.com/? There seems to be no clear documentation around it. If it is a private repository where should I specify the access token? I am stuck at this point so was wondering how we can do it. Thanks for the great work you all are doing! |
@Charuta-Chaudhari That is not related to this issue. Please use the discord for asking for help: https://go.nx.dev/community (However, the quick answer is that the standard I believe we can say that the common entry in the error between all the listed systems in the combination of 404 and Not Found in the error (sometimes in that casing, sometimes lower case). Therefore, hopefully #20995 should fix this issue. |
@JamesHenry Thanks you so much for quick response. It helped. Also, thank you for pointing to community channel. I was not aware of it. |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
When try to first publish a lib on github packages registry (https://npm.pkg.github.com/), the publish failed because of error in
npm view {package} versions dist-tags --json --registry=https://npm.pkg.github.com/
commandExpected Behavior
first publish on github packages registry don't fail
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: