Skip to content
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

npm publish registry URL deprecated: "This endpoint is deprecated. Use https://replicate.npmjs.com instead." #1141

Closed
2 of 5 tasks
shgysk8zer0 opened this issue Sep 30, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@shgysk8zer0
Copy link

Description:
https://registry.npmjs.org is deprecated (no longer works) for publishing packages, resulting in the following error:

npm ERR! error creating tlog entry - (502) Bad Gateway

Making a request to the current registry URL gives the following error via an npm-notice header: "This endpoint is deprecated. Use https://replicate.npmjs.com instead." This notice is not present in requests for eg https://registry.npmjs.org/yocto-queue.

However, updating the registry URL makes installing packages 404:

npm ERR! code E404
npm ERR! 404 Not Found - GET https://replicate.npmjs.com/yocto-queue/-/yocto-queue-0.1.0.tgz - not_found
npm ERR! 404 
npm ERR! 404  'https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz' is not in this registry.
npm ERR! 404 This package name is not valid, because 
npm ERR! 404  1. name can only contain URL-friendly characters

Action version:
uses: actions/setup-node@v4

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

Node v20.9.0, npm 10.1.0

Repro steps:
Trigger a GitHub Actions workflow with a npm publish --provenance --access public step

Expected behavior:
Packages should install and publish, as they were previously. I've been using this workflow without issue for about a year, and it just stopped working with the errors yesterday afternoon.

Actual behavior:
Either there is a Bad Gateway error in publishing with the deprecated registry URL, or there is a Bad Request error installing packages with the updated registry URL. I suspect this may require temporarily supporting a registry for installing and another for publishing.

@shgysk8zer0 shgysk8zer0 added bug Something isn't working needs triage labels Sep 30, 2024
@shgysk8zer0
Copy link
Author

Self-comment just to add a bump here... This may be an issue for a minority ATM, but having the correct registry for publishing with --provenance is pretty critical to the overall ecosystem, as is dealing with the deprecated endpoint.

@mahabaleshwars
Copy link

Hi @shgysk8zer0,
Thank you for creating this issue. We will investigate it and provide feedback as soon as we have some updates.

@shgysk8zer0
Copy link
Author

@mahabaleshwars It may have been only a temporary issue with registry.npmjs.org. I'm unsure. I re-ran an old run and it did successfully publish.

I'll close the issue, however that deprecation warning might still be worth looking into.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants