Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Getting "-bash: bourbon: command not found" after I installed Bourbon

I've installed Bourbon (the Sass Mixin Library) like this:

sudo gem install bourbon

I then typed

bourbon install

and got

-bash: bourbon: command not found

Any ideas?

1 Answer

Chris Shaw
Chris Shaw
26,676 Points

Hi Ryan,

Typically this happens when the PATH hasn't updated yet, the two easiest ways I've used constantly in the past is as follows.

  1. Close all the terminal windows and re-open a new one
  2. or restart your Mac which 99.99% of the time fixes this issue

If it continues to fail you can try running a self update on gem as it can also be a binding issue where the executable exists but gem simply hasn't registered it yet.

sudo gem update –system

You nailed it! Thanks. All working for me now :)

Chris Shaw
Chris Shaw
26,676 Points

Awesome, glad to help.

James Barnett
James Barnett
39,199 Points

Good to know.

And here I was thinking gem binaries had to be added to the path variable manually.