algoliasearch-client-javascript: error Couldn't find package "@algolia/client-personalization@4.10.0" required by "algoliasearch@^4.8.6" on the "npm" registry.

We’re seeing this in our build logs.

error Couldn’t find package “@algolia/client-personalization@4.10.0” required by “algoliasearch@^4.8.6” on the “npm” registry.

Also, this is returning 404 https://www.npmjs.com/package/@algolia/client-personalization

And

verbose 1.253948505 Request "https://registry.yarnpkg.com/@algolia%2fclient-personalization" finished with status code 404.

Thanks.

-josh

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 7
  • Comments: 16 (5 by maintainers)

Most upvoted comments

I’m very sorry for the downtime this caused anyone, even though it said “published” for me, it did not mention the access was private (even though I ran npm access public @algolia/client-personalization and npm access public @algolia/recommend). Publishing a patch with --access public fixed it as far as I can tell.

Will make sure new packages in the future have a throwaway version published before relying on it, very sorry!

Sorry again for the misunderstanding on what was actually going wrong here (I thought it was eventual consistency first, but it turned out to be never consistency)

https://www.npmjs.com/package/%40algolia%2Fclient-personalization and https://www.npmjs.com/package/%40algolia%2Frecommend now seem accessible from a private tab for me, and show as public on the package page:

Screenshot 2021-06-23 at 15 49 53 Screenshot 2021-06-23 at 15 55 20

It’s definitely published, however I’m not sure whether npm has actually processed it. How come nobody used lockfiles?

Since npm caches really heavily, I recommend to install 4.9.3 if you have any issues with retrieving the 4.10.0 or 4.10.1 packages, but I’ll close it, as it seems you’re able to install it now.

My money is on „not yet published” as this dependency seems to be a new dependency in v4.10.0:

https://github.com/algolia/algoliasearch-client-javascript/blob/4.10.0/packages/algoliasearch/package.json#L34 vs https://github.com/algolia/algoliasearch-client-javascript/blob/4.9.3/packages/algoliasearch/package.json

So pinning the version to v4.9.3 works for now, until the new/renamed package has been made available 😃