Search code examples
bowercodekit

Bower component download failures in CodeKit


I downloaded the latest version of CodeKit (trial version 2.0 (16828)). It starts fine on my Mac Mini, but as soon as I try to download a component using Bower, it fails with the error: "Bower Error / Bower could not determine which components are installed in this project. Make sure you're connected to the Internet and try again." Repeated attempts (either clicking "Retry" or clicking "OK" and trying to download the component again) continue to fail.

Bower Error dialog

The app completes the "Downloading Bower component list" without error. The error occurs when it is "Scanning For Installed Components..."

I'm connected to the Internet just fine.

When I try to install a Bower component, it fails with this message:

Bower Result error 2

Why am I getting these errors and how can I fix CodeKit?

Thank you!


Solution

  • Turns out that Bower continued to fail, which prevented CodeKit from working.

    Tolga Akyuz's answer to Siddharth's problem was the fix - I had a ~/.cache file which was preventing Bower from adding files to ~/.cache/

    When I renamed the ~/.cache file (e.g. to ~/.cache-orig) and created a ~/.cache/ directory, Bower began working properly - and so did CodeKit.