hexpm / hex

Package manager for the Erlang ecosystem.
https://hex.pm
976 stars 187 forks source link

(Mix) No package with name decimal (from: mix.exs) in registry #1050

Closed schutm closed 2 months ago

schutm commented 2 months ago

When I add the 'decimal'-package (or any package which depends on decimal) to mix.exs I get the error above. Looking at hex.pm it is clear this packages does exist. I also tried to get it via a VPN (to make sure it isn't a glitch in the CDN), however it didn't help.

I was able to replay this with a completely clean project.

schutm commented 2 months ago

Managed to fix this, by removing the .hex-cache directory. Quiet a journey, but happy to have it resolved.

LukasKnuth commented 1 week ago

The above worked for me, too (in my case, it was a different package that randomly started failing).

Ran rm -r ~/.hex (location might be different on another OS, dunno) and it did the dependency resolution again. This fixed the issue.