Cannot save plots

I cannot save a plot on Julia. The following code

using Plots
plot(1:10)
savefig("test.png")

returns

GKS: dlopen(/Users/brandonlivio/.julia/artifacts/4cab0d575711b60d292e4bd3088c55d27752a8ea/lib/cairoplugin.so, 1): Library not loaded: @rpath/libcairo.2.dylib
  Referenced from: /Users/brandonlivio/.julia/artifacts/4cab0d575711b60d292e4bd3088c55d27752a8ea/lib/cairoplugin.so
  Reason: Incompatible library version: cairoplugin.so requires version 11603.0.0 or later, but libcairo.2.dylib provides version 2.0.0
"/Users/brandonlivio/test.png"

I have reinstalled julia from scratch, installed only the pakage plots, and the problem persists. I am running on Mac 11.7.10 and using Julia 1.10.5 (the latest stable release)

That would help solving your problem. Remove the current GR Package and add older version GR v0.55.0. https://github.com/JuliaPlots/Plots.jl/issues/3800

Indeed by downgrading it works, however I am now running a pretty old version of GR (current stabble release is 0.73.0)