Feedback on npm registry v2 #21058
Replies: 7 comments 8 replies
-
I'm unsure if v2 is the issue or even what version of the package registry we are using, but we noticed the last couple of days that our beta npm releases get tagged with the |
Beta Was this translation helpful? Give feedback.
-
Also, idk if this also related to v2 registry update, but we can't use |
Beta Was this translation helpful? Give feedback.
-
How can we get access to v2 of the npm registry? Is the beta open to organisations? |
Beta Was this translation helpful? Give feedback.
-
Is there a way to tell if we are on v2 or not? |
Beta Was this translation helpful? Give feedback.
-
With v2, you have access to these new features:
|
Beta Was this translation helpful? Give feedback.
-
I believe the following to be a bug in npm registry v2. Our organization proxies GitHub Packages npm registry via Sonatype Nexus, and uses pnpm to manage our npm packages. As of a few months ago, entries in pnpm-lock.yaml files that were previously working, suddenly started throwing 404s (for packages that are hosted in GitHub Packages npm registry). By comparing the entries in the lockfile against the responses from GitHub packages we noticed that the download URLs for packages in GitHub Packages npm registry have changed. As an example, @cvent/pnpm-lock-export is a package on GitHub Packages.
currently gives an output of In an old lockfile, this same package (@cvent/pnpm-lock-export@0.4.0) had a tarball URL of When requesting the package tarball directly from GitHub Packages with the SHA-1 or the SHA-256 filename, the package is successfully downloaded. When requesting the package tarball via Nexus, the 'authoritative' SHA-1 filename succeeds, but the 'old' SHA-256 filename throws a 404 error. We also noticed that
currently gives I do not know whether to consider this a bug on the nexus side too, since GitHub no longer appears to be advertising the SHA-256 URL as being the tarball download URL of the package via its API, but the URL does still work. |
Beta Was this translation helpful? Give feedback.
-
Does this feature cover creating a token to publish an npm package? I still can't find anything in the UI that lets me create a token to ONLY allow publishing of new packages? Or to only allow reading of packages? Maybe I'm missing something obvious but the token creation process only asks about repository access. This change log certainly reads like it implies it's possible, but I'm starting to think that that is incorrect. |
Beta Was this translation helpful? Give feedback.
-
The npm registry was migrated to v2, enabling beta testers to
Please leave your feedback as a comment!
Beta Was this translation helpful? Give feedback.
All reactions