Skip to content

Troubleshooting

Permission denied (EACCES) when installing

Section titled “Permission denied (EACCES) when installing”
  • Linux / macOS: Your user must be able to write the font directory (~/.local/share/fonts or ~/Library/Fonts). Fix directory ownership or permissions.
  • Windows: Run the terminal as Administrator when installing fonts.

No results or “unable to find font family”

Section titled “No results or “unable to find font family””
  • Check spelling; names must match the catalog (use gfcli search partialname).
  • If several families match your string, the CLI lists them; pick the exact family name and retry.
  • Refresh the catalog: gfcli search yourterm --refresh-cache

“Failed to download font list” or stale catalog

Section titled ““Failed to download font list” or stale catalog”
  • Confirm network access to gwfh.mranftl.com.
  • Run any command with --refresh-cache to ignore ~/.gfcli/cache.json and fetch a new list.
  • You can delete ~/.gfcli/cache.json manually to force a cold start.
  • gfcli copy needs a single exact family match; otherwise it prints alternatives like download / install.
  • On headless or remote SSH sessions, clipboard integration may not exist; use getCssUrl() from the Node API instead.

GWFH does not always publish WOFF2 for every variant. If a variant has no WOFF2 URL, that variant is skipped when building the file map. Try TTF or a different variant set.

Install google-font-cli as a dependency and require('google-font-cli'). See Node module & API.